Re: resyncing a 40k folder generates 380k mail_addr_is_user calls
On 2007-03-27 17:19:28 -0700, Marc MERLIN wrote:
> On Wed, Mar 28, 2007 at 12:02:33AM +0200, Vincent Lefevre wrote:
> > On 2007-03-27 08:33:27 -0700, Marc MERLIN wrote:
> > > However, if the parent directory of the folder I'm viewing, gets
> > > modified (let's say I'm in ~/Maildir/.snd/ and I send a new mail),
> > > mutt takes a silly time to resync the folder, like 4mn for 40,000
> > > messages.
> > That's probably the bug I reported here:
> > http://bugs.mutt.org/1931
> > (I don't use the header cache).
> I don't think that's it.
After a new test, I think that's it. Note that bug 1931 is quite old
and Mutt probably has new debug messages. I don't have timings, I've
just looked at the percentage of lines in the log file.
[Now I add a new message to the maildir folder.]
"parsing" messages: 3%
"mutt_addr_is_user" / "mutt_match_rx_list" messages: 71%
"maildir_add_to_context" messages: 5%
I wouldn't be surprised if all the time were spent on mutt_addr_is_user.
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)