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 D07C61F4B4 for ; Mon, 18 Jan 2021 10:30:32 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/2] lei q: write faster, mutt does less work Date: Mon, 18 Jan 2021 04:30:30 -0600 Message-Id: <20210118103032.1430-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 1/2 was tricky and still ugly, but the speedup is great (>100%) and opens up the door for even more speedups. 2/2 ought to help with other MUAs, but I've only tested with mutt. AFAIK every MUA clears the \Recent flag unless it opens a mail folder read-only, so this saves a bunch of renames by the MUA with Maildirs. Eric Wong (2): lei q: parallelize Maildir and mbox writing lei_to_mail: optimize for MUAs lib/PublicInbox/IPC.pm | 3 ++ lib/PublicInbox/LEI.pm | 36 +++++++++++++++------ lib/PublicInbox/LeiOverview.pm | 36 +++++++++++++++++++-- lib/PublicInbox/LeiQuery.pm | 12 +++++-- lib/PublicInbox/LeiToMail.pm | 59 +++++++++++++++++++++++++++++----- lib/PublicInbox/LeiXSearch.pm | 27 ++++++++++------ lib/PublicInbox/Spawn.pm | 2 +- t/lei_to_mail.t | 16 ++++++--- t/mbox_reader.t | 2 ++ 9 files changed, 153 insertions(+), 40 deletions(-)