<<< Date Index >>>     <<< Thread Index >>>

Re: Mark messages in mailbox as read without massive performance hit?!



* Derek Martin <invalid@xxxxxxxxxxxxxx> [2005-12-29 00:40 -0500]:
> So, my amended statement: Depending on your hardware, and the
> filesystem, and your mail usage, and a whole lot of other factors, if
> you have lots of e-mail messages, mbox will win over maildir for large
> numbers of messages.  

54315 Mails, 509M as mbox (TMP), 572M as maildir (TMP.d).

Just opening the folder (to compare with the later times):

time mutt -f=TMP.d -e "set header_cache=''" -e "push <quit>"
4.890u 2.297s 0:11.33 63.3%     676+35932k 0+0io 0pf+0w
4.936u 2.288s 0:11.60 62.1%     690+36235k 0+0io 0pf+0w
 
time mutt -f=TMP.d -e "push <quit>" (cache deleted)
6.453u 2.953s 0:15.60 60.2%     656+35618k 0+456io 0pf+0w
6.490u 2.984s 0:15.85 59.7%     685+36699k 0+427io 0pf+0w


time mutt -f=TMP.d -e "push <quit>" (with cache 31M)
2.571u 0.468s 0:06.26 48.4%     673+32827k 0+12io 0pf+0w
2.583u 0.469s 0:06.47 46.9%     629+32167k 0+12io 0pf+0w


time mutt -f=TMP -e "push <quit>"
3.899u 1.447s 0:14.93 35.6%     676+31507k 4828+0io 0pf+0w
3.933u 0.794s 0:07.02 67.2%     662+30678k 0+0io 0pf+0w



And now marking the mails as replied to (before the first run, 7
where marked as replied to, the second run left the folder unchanged).

time mutt -f=TMP.d -e "push 
'<tag-pattern>.*<enter><tag-prefix><set-flag>r<quit>'"
3.065u 2.846s 0:12.29 48.0%     687+44545k 2531+18io 0pf+0w
2.625u 0.439s 0:06.29 48.4%     699+33973k 0+12io 0pf+0w


time mutt -f=TMP -e "push '<tag-pattern>.*<enter><tag-prefix><set-flag>r<quit>'"
6.944u 10.649s 2:15.71 12.9%    677+51075k 15435+16376io 5pf+0w
3.919u 1.330s 0:12.38 42.3%     671+30962k 3401+0io 5pf+0w


Nicolas

-- 
http://www.rachinsky.de/nicolas