unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH 0/5] cleanups + posible major fragmentation reduction
@ 2024-06-06  7:44 Eric Wong
  2024-06-06  7:44 ` [PATCH 1/5] treewide: use \*STD(IN|OUT|ERR) consistently Eric Wong
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Eric Wong @ 2024-06-06  7:44 UTC (permalink / raw)
  To: meta

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(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-12 11:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-06  7:44 [PATCH 0/5] cleanups + posible major fragmentation reduction Eric Wong
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

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).