From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 0/5] cleanups + posible major fragmentation reduction
Date: Thu, 6 Jun 2024 07:44:11 +0000 [thread overview]
Message-ID: <20240606074416.3900983-1-e@80x24.org> (raw)
1/5 is another attempt to fix sporadic t/imap_searchqp.t failures
This part of Perl still seems mysterious to me :<
Straightfoward stuff:
2,3,4 reduce syscalls and allocations from looking up `git'
(mainly in tests and odd parts this time around)
5/5 appears to be a major reduction in malloc fragmentation in
long-running -httpd and -netd instances under heavy traffic.
I'm still testing, but I'm kicking myself for not trying this
trade-off earlier even though mwrap-perl pointed this out
$ctx->{skel} as a hot spot months ago...
Eric Wong (5):
treewide: use \*STD(IN|OUT|ERR) consistently
git: decouple git_version from git_exe
test_common: use cached git lookup to reduce stat(2)
treewide: use cached git executable lookup
www: reduce fragmentation in /t/ and /T/ endpoints
lib/PublicInbox/Admin.pm | 5 +--
lib/PublicInbox/Config.pm | 2 +-
lib/PublicInbox/Git.pm | 10 +++---
lib/PublicInbox/GitCredential.pm | 3 +-
lib/PublicInbox/HTTP.pm | 2 +-
lib/PublicInbox/Import.pm | 3 +-
lib/PublicInbox/LEI.pm | 9 ++---
lib/PublicInbox/LeiBlob.pm | 4 +--
lib/PublicInbox/LeiConfig.pm | 3 +-
lib/PublicInbox/LeiInput.pm | 4 ++-
lib/PublicInbox/LeiMailDiff.pm | 3 +-
lib/PublicInbox/LeiSavedSearch.pm | 4 +--
lib/PublicInbox/LeiViewText.pm | 3 +-
lib/PublicInbox/MailDiff.pm | 3 +-
lib/PublicInbox/MultiGit.pm | 6 ++--
lib/PublicInbox/SearchView.pm | 7 ++--
lib/PublicInbox/TestCommon.pm | 12 +++----
lib/PublicInbox/View.pm | 55 ++++++++++++++++---------------
lib/PublicInbox/WwwCoderepo.pm | 7 ++--
script/lei | 2 +-
script/public-inbox-clone | 2 +-
script/public-inbox-fetch | 2 +-
22 files changed, 80 insertions(+), 71 deletions(-)
next reply other threads:[~2024-06-06 7:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 7:44 Eric Wong [this message]
2024-06-06 7:44 ` [PATCH 1/5] treewide: use \*STD(IN|OUT|ERR) consistently Eric Wong
2024-06-06 7:44 ` [PATCH 2/5] git: decouple git_version from git_exe Eric Wong
2024-06-06 7:44 ` [PATCH 3/5] test_common: use cached git lookup to reduce stat(2) Eric Wong
2024-06-06 7:44 ` [PATCH 4/5] treewide: use cached git executable lookup Eric Wong
2024-06-06 7:44 ` [PATCH 5/5] www: reduce fragmentation in /t/ and /T/ endpoints Eric Wong
2024-06-12 11:43 ` fragmentation notes [was: [PATCH 5/5] www: reduce fragmentation ...] 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=20240606074416.3900983-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).