unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Re: [PATCH 1/3] new: Do not defer maildir flag synchronization during the first run
@ 2011-01-28  0:08 Austin Clements
  2011-01-28  8:51 ` Sebastian Spaeth
  0 siblings, 1 reply; 11+ messages in thread
From: Austin Clements @ 2011-01-28  0:08 UTC (permalink / raw)
  To: Carl Worth; +Cc: notmuch

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

Looks like eagerly synchronizing tags is easy and works fine, though I need
to beef up the tests and put some transactions around things before I'm
satisfied.

I added a "notmuch_database_remove_message_get" to the public API that's
just like "notmuch_database_remove_message" except that it also returns a
notmuch_message_t if other instances of the message still exist.  It feels
clunky to have two almost identical variants of this function.  Is this the
preferred way to change the public API?  Or should I just add the argument
to the existing function and fix the other three calls to it?
On Thu, Jan 27, 2011 at 12:43 AM, Austin Clements <amdragon@mit.edu> wrote:

> Sure. I've been wanting to take a crack at notmuch new's atomicity for a
> while. Though you'll have to get through some of my outstanding patches. I
> can only keep so many branches in my head. ]:--8)
>

[-- Attachment #2: Type: text/html, Size: 1179 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH 0/3] Speedups and enhancements of notmuch new
@ 2011-01-21  9:59 Michal Sojka
  2011-01-21  9:59 ` [PATCH 1/3] new: Do not defer maildir flag synchronization during the first run Michal Sojka
  0 siblings, 1 reply; 11+ messages in thread
From: Michal Sojka @ 2011-01-21  9:59 UTC (permalink / raw)
  To: notmuch

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

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

end of thread, other threads:[~2011-01-30  0:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28  0:08 [PATCH 1/3] new: Do not defer maildir flag synchronization during the first run Austin Clements
2011-01-28  8:51 ` Sebastian Spaeth
  -- strict thread matches above, loose matches on Subject: below --
2011-01-21  9:59 [PATCH 0/3] Speedups and enhancements of notmuch new Michal Sojka
2011-01-21  9:59 ` [PATCH 1/3] new: Do not defer maildir flag synchronization during the first run Michal Sojka
2011-01-25 22:42   ` Austin Clements
2011-01-26  9:15     ` Carl Worth
2011-01-26 11:59       ` Carl Worth
2011-01-26 15:07         ` Austin Clements
2011-01-26 16:50           ` Michal Sojka
2011-01-27  5:04           ` Carl Worth
2011-01-27  5:43             ` Austin Clements
2011-01-30  0:21               ` Rob Browning

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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