From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6E7881F518 for ; Thu, 6 Jun 2024 07:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1717659856; bh=qsJshKaRYHvsJCctUdsa9Hls9it3jvcOMiEdKnXsUdw=; h=From:To:Subject:Date:From; b=lwpnjGET0GsII2QaHPM8fGFLhNHWY221krYe/yRSMOTig59oujGLqJUhHfNC519E3 kwXLNW5hxI5r9gxTs+vRMiqBMpPG2W8D2wa2pmX+Pr5iskuMhJgvZyr99OfKniNl6Y Gi8yVuffy96fB42Q1R0zL6q8L8yQJ3/6PyP4NUL8= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/5] cleanups + posible major fragmentation reduction Date: Thu, 6 Jun 2024 07:44:11 +0000 Message-ID: <20240606074416.3900983-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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(-)