]> Sergey Matveev's repositories - public-inbox.git/commit
use Net::SSLeay (OpenSSL) for SHA-(1|256) if installed
authorEric Wong <e@80x24.org>
Sun, 29 Jan 2023 10:30:41 +0000 (10:30 +0000)
committerEric Wong <e@80x24.org>
Mon, 30 Jan 2023 06:42:31 +0000 (06:42 +0000)
commite6aa13bccb7ea5d5b3246b3a944621515905e360
tree822309b8cc2ac85ba50acd33deebb03891b0844b
parent9eb8baf199cd148b7ebf8e6e130fb832f4e1ef00
use Net::SSLeay (OpenSSL) for SHA-(1|256) if installed

On my x86-64 machine, OpenSSL SHA-256 is nearly twice as fast as
the Digest::SHA implementation from Perl, most likely due to an
optimized assembly implementation.  SHA-1 is a few percent
faster, too.
25 files changed:
MANIFEST
lib/PublicInbox/ContentDigestDbg.pm
lib/PublicInbox/ContentHash.pm
lib/PublicInbox/Fetch.pm
lib/PublicInbox/Git.pm
lib/PublicInbox/LeiDedupe.pm
lib/PublicInbox/LeiMirror.pm
lib/PublicInbox/LeiSavedSearch.pm
lib/PublicInbox/LeiSucks.pm
lib/PublicInbox/Linkify.pm
lib/PublicInbox/MID.pm
lib/PublicInbox/MdirReader.pm
lib/PublicInbox/NNTP.pm
lib/PublicInbox/SHA.pm [new file with mode: 0644]
lib/PublicInbox/WwwAtomStream.pm
t/clone-coderepo.t
t/httpd-corner.psgi
t/httpd-corner.t
t/ipc.t
t/nntpd.t
t/sha.t [new file with mode: 0644]
t/www_listing.t
xt/git_async_cmp.t
xt/imapd-validate.t
xt/nntpd-validate.t