From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6D4781F5AE for ; Fri, 17 Jul 2020 06:31:55 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/8] indexing cleanup and code reduction Date: Fri, 17 Jul 2020 06:31:47 +0000 Message-Id: <20200717063155.3734-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Some bigger indexing updates coming, but first we can reduce allocations and get rid of some overly complicated unindexing logic. Eric Wong (8): v2: use v5.10.1, parent.pm, drop warnings drop binmode usage import: use common capitalization for filtering headers with_umask: pass args to callback overidx: each_by_mid: pass self and args to callbacks overidx: favor non-OO sub dispatch for internal subs searchidx: use v5.10.1, parent.pm, drop warnings search: simplify unindexing lib/PublicInbox/Import.pm | 4 +- lib/PublicInbox/InboxWritable.pm | 42 ++++--- lib/PublicInbox/OverIdx.pm | 126 +++++++++++---------- lib/PublicInbox/SearchIdx.pm | 178 ++++++++++++------------------ lib/PublicInbox/SearchIdxShard.pm | 12 +- lib/PublicInbox/V2Writable.pm | 116 +++++++++---------- lib/PublicInbox/Xapcmd.pm | 35 +++--- t/search.t | 6 +- 8 files changed, 246 insertions(+), 273 deletions(-)