Performance-issues with large threads

Franz Fellner alpine.art.de at gmail.com
Tue Jul 23 22:39:48 PDT 2013


Hej,

> How long does 
>
> notmuch show --format=json thread:thread-id  > /dev/null
>
> take? Is it much faster after the first run? What about the same with
> the added cli option --body=false?

[7:23] $ time notmuch show --format=json thread:00000000000002d1 >|/dev/null
notmuch show --format=json thread:00000000000002d1 >| /dev/null  0,33s user 0,09s system 8% cpu 4,571 total
[7:25] $ time notmuch show --format=json thread:00000000000002d1 >|/dev/null
notmuch show --format=json thread:00000000000002d1 >| /dev/null  0,12s user 0,02s system 99% cpu 0,139 total
[7:25] $ time notmuch show --format=json --body=false thread:00000000000002d1 >|/dev/null
notmuch show --format=json --body=false thread:00000000000002d1 >| /dev/null  0,30s user 0,08s system 8% cpu 4,446 total
[7:25] $ time notmuch show --format=json --body=false thread:00000000000002d1 >|/dev/null
notmuch show --format=json --body=false thread:00000000000002d1 >| /dev/null  0,10s user 0,01s system 99% cpu 0,119 total
[7:26] $

So fetching without cache takes 4.5 secs, with only 0.1 -> The issue could be in parsing the result inside notmuch-vim/alot/...

> Do the messages have html parts?
Yes, most of them do (unless you reply by mail and only use plaintext).

> Also what disk are you using (and does it have any other significant
> activity happening)? And what version of notmuch are you using?
I use a HDD with 5400 RPM. The most interesting activity is ~80-100% CPU usage during loading, all the 13 secs - quite a battery killer ;)
I regularly build from latest git master (due to the vim-client).

>
> Best wishes
>
> Mark
>
>
>
>
>
>
> Franz Fellner <alpine.art.de at gmail.com> writes:
>
>> Hi,
>> 
>> "Large" in the context of this issue is >20 replies, I have to 
>> wait ~1 sec until the thread shows up. With larger 
>> conversations it get's worse (a bug report on bugs.kde.org with 
>> ~400 replies takes ~13 secs. to load).
>> This is due to the fact, that notmuch-{vim,emacs} load the 
>> complete mail including the body.
>> ner does a great job here, it loads all headers but only the 
>> body of the first unread mail, resulting in instant loading 
>> even of gigantic conversations. It would be terrific to see 
>> something like that, at least in my favored vim-client ;)
>> 
>> Thx ...
>
>



More information about the notmuch mailing list