/usr/share/perl5/Audio/Nama/Memoize_subs.pm is in nama 1.078-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | # ------ Memoize subroutines ------
package Audio::Nama;
use Modern::Perl;
our ( $memoize );
BEGIN { # OPTMIZATION
my @wav_functions = qw(
get_versions
candidates
targets
versions
last
);
my @track_functions = qw(
dir
basename
full_path
group_last
last
current_wav
current_version
monitor_version
maybe_monitor
rec_status
region_start_time
region_end_time
playat_time
fancy_ops
input_path
);
sub track_memoize { # before generate_setup
return unless $memoize;
map{package Audio::Nama::Track; memoize($_) } @track_functions;
}
sub track_unmemoize { # after generate_setup
return unless $memoize;
map{package Audio::Nama::Track; unmemoize ($_)} @track_functions;
}
sub rememoize {
return unless $memoize;
map{package Audio::Nama::Wav; unmemoize ($_); memoize($_) }
@wav_functions;
}
sub init_memoize {
return unless $memoize;
map{package Audio::Nama::Wav; memoize($_) } @wav_functions;
}
}
1;
__END__
|