unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 0/2] allow OpenSSL SHA-(1|256) use if installed
Date: Sun, 29 Jan 2023 10:30:40 +0000	[thread overview]
Message-ID: <20230129103042.3240848-1-e@80x24.org> (raw)

OpenSSL has platform-specific asm, and the SHA-256 x86-64
implementation is nearly twice as fast as the portable C
implementation in Perl5.  SHA-1 is a tad faster, too.

We still need to use Digest::SHA in a few places for
->clone to to bifurcate state.

Eric Wong (2):
  use Net::SSLeay (OpenSSL) for SHA-(1|256) if installed
  content_digest_dbg: convert to arrayref and limit to lei

 MANIFEST                            |  2 +
 lib/PublicInbox/ContentDigestDbg.pm | 12 +++---
 lib/PublicInbox/ContentHash.pm      | 11 +++---
 lib/PublicInbox/Fetch.pm            |  4 +-
 lib/PublicInbox/Git.pm              |  4 +-
 lib/PublicInbox/LeiDedupe.pm        |  6 +--
 lib/PublicInbox/LeiMirror.pm        |  2 +-
 lib/PublicInbox/LeiSavedSearch.pm   |  4 +-
 lib/PublicInbox/LeiSucks.pm         | 12 +++---
 lib/PublicInbox/Linkify.pm          |  2 +-
 lib/PublicInbox/MID.pm              |  8 ++--
 lib/PublicInbox/MailDiff.pm         |  5 +--
 lib/PublicInbox/MdirReader.pm       |  4 +-
 lib/PublicInbox/NNTP.pm             |  2 +-
 lib/PublicInbox/SHA.pm              | 58 +++++++++++++++++++++++++++++
 lib/PublicInbox/WwwAtomStream.pm    |  2 +-
 t/clone-coderepo.t                  |  2 +-
 t/httpd-corner.psgi                 |  4 +-
 t/httpd-corner.t                    |  2 +-
 t/ipc.t                             |  6 +--
 t/nntpd.t                           |  4 +-
 t/sha.t                             | 25 +++++++++++++
 t/www_listing.t                     |  2 +-
 xt/git_async_cmp.t                  | 10 ++---
 xt/imapd-validate.t                 |  5 ++-
 xt/nntpd-validate.t                 |  5 ++-
 26 files changed, 145 insertions(+), 58 deletions(-)
 create mode 100644 lib/PublicInbox/SHA.pm
 create mode 100644 t/sha.t

             reply	other threads:[~2023-01-29 10:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-29 10:30 Eric Wong [this message]
2023-01-29 10:30 ` [PATCH 1/2] use Net::SSLeay (OpenSSL) for SHA-(1|256) if installed Eric Wong
2023-01-29 10:30 ` [PATCH 2/2] content_digest_dbg: convert to arrayref and limit to lei Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230129103042.3240848-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).