/usr/share/perl5/Audio/Nama/Memoize.pm is in nama 1.208-1.
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 52 53 54 55 56 57 58 | # ------ Memoize subroutines ------
package Audio::Nama;
use Modern::Perl;
use Memoize qw(memoize unmemoize);
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 $config->{memoize};
map{package Audio::Nama::Track; memoize($_) } @track_functions;
}
sub track_unmemoize { # after generate_setup
return unless $config->{memoize};
map{package Audio::Nama::Track; unmemoize ($_)} @track_functions;
}
sub restart_wav_memoize {
return unless $config->{memoize};
map{package Audio::Nama::Wav; unmemoize ($_); memoize($_) }
@wav_functions;
}
sub latency_memoize {
map{ memoize($_) } ('Audio::Nama::self_latency','Audio::Nama::latency_of');
}
sub latency_unmemoize {
map{ unmemoize($_) } ('Audio::Nama::self_latency','Audio::Nama::latency_of');
}
sub latency_rememoize { latency_unmemoize(); latency_memoize() }
sub init_wav_memoize {
return unless $config->{memoize};
map{package Audio::Nama::Wav; memoize($_) } @wav_functions;
}
}
1;
__END__
|