Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id EFBAF42D280 for ; Fri, 21 Jan 2011 01:59:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5mjz1qgp7CbH for ; Fri, 21 Jan 2011 01:59:47 -0800 (PST) Received: from mail.loccal.net (gw.loccal.net [94.142.235.206]) by olra.theworths.org (Postfix) with ESMTP id BEE65431FD0 for ; Fri, 21 Jan 2011 01:59:47 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.loccal.net (Postfix) with ESMTP id 450AD1BDB6; Fri, 21 Jan 2011 11:12:22 +0100 (CET) X-Virus-Scanned: amavisd-new at loccal.net Received: from mail.loccal.net ([127.0.0.1]) by localhost (mail.loccal.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id x8E-JdeMzPYO; Fri, 21 Jan 2011 11:12:18 +0100 (CET) Received: from steelpick.2x.cz (unknown [10.21.129.4]) by mail.loccal.net (Postfix) with ESMTPS id BBDFB563D; Fri, 21 Jan 2011 11:12:18 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1PgDmO-0003je-D9; Fri, 21 Jan 2011 10:59:40 +0100 From: Michal Sojka To: notmuch@notmuchmail.org Subject: [PATCH 0/3] Speedups and enhancements of notmuch new Date: Fri, 21 Jan 2011 10:59:33 +0100 Message-Id: <1295603977-14326-1-git-send-email-sojkam1@fel.cvut.cz> X-Mailer: git-send-email 1.7.2.3 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 09:59:49 -0000 Hi all, after yesterday discussion on IRC I looked at some ways how to speedup the initial run of notmuch new. It turned out that with a few pretty simple changes I'm able to reduce the time by about 30% (from 1h 46m to 1h 14m on ext4, 200k messages, 3GB). -Michal Michal Sojka (3): new: Do not defer maildir flag synchronization during the first run new: Add all initial tags at once new: Enhance progress reporting notmuch-new.c | 194 +++++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 126 insertions(+), 68 deletions(-) -- 1.7.2.3