Archive-BagIt-Fast
view release on metacpan or search on metacpan
lib/Archive/BagIt/Fast.pm view on Meta::CPAN
my $finish_time = time();
$self->{stats}->{files}->{"$filename"}->{verify_time}= ($finish_time - $start_time);
$self->{stats}->{verify_time} += ($finish_time-$start_time);
close($fh);
return $digest;
};
return $sub;
}
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Archive::BagIt::Fast - A module to use L<IO::AIO> to get better performance
=head1 VERSION
version 0.090
=head1 NAME
Archive::BagIt::Fast - For people who are willing to rely on some other modules in order to get better performance
=head1 HINTs
Use this module only if you have *measured* that your environment has a benefit. The results vary highly depending on
typical file size, filesystem and storage systems.
=head1 METHODS
=over
=item digest_callback()
register a callback function with method to calculate and return all digests for a a list of files using a Digest-object. This method implements fast
file access using memory mapped I/O by L<IO::AIO>.
=item mmap_based_digest($digestobj, $fh, $filesize)
internal funtion which uses mmap to calculate digest. Called by C<digest_callback>
=item sysread_based_digest($digestobj, $fh, $filesize)
internal function which uses sysread to calculate digest. Called by C<digest_callback>
=back
=head1 AVAILABILITY
The latest version of this module is available from the Comprehensive Perl
Archive Network (CPAN). Visit L<http://www.perl.com/CPAN/> to find a CPAN
site near you, or see L<https://metacpan.org/module/Archive::BagIt::Fast/>.
=head1 BUGS AND LIMITATIONS
You can make new bug reports, and view existing ones, through the
web interface at L<http://rt.cpan.org>.
=head1 AUTHOR
Andreas Romeyke <cpan@andreas.romeyke.de>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2022 by Rob Schmidt <rjeschmi@gmail.com>, William Wueppelmann and Andreas Romeyke.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 0.487 second using v1.01-cache-2.11-cpan-5a3173703d6 )