ok so if there's no disk cache contention and the ~/Mail/inbox/mhindex.db
file remains readable in disk cache, "scan" can finish in less than 1 second.
#nsa:amd64# time sh -c "./scan +inbox > /tmp/vix2"
0.184u 0.245s 0:00.43 97.6% 144+1355k 0+1io 0pf+0w
#nsa:amd64# time sh -c "./scan +inbox > /tmp/vix2"
0.156u 0.208s 0:00.36 97.2% 148+1437k 0+1io 0pf+0w
#nsa:amd64# time sh -c "./scan +inbox > /tmp/vix2"
0.144u 0.227s 0:00.37 97.2% 147+1426k 0+1io 0pf+0w
#nsa:amd64# wc -l /tmp/vix2
3293 /tmp/vix2
this is after fixing a bug where i was calling fstat() on the message file
even though i wasn't reading from the message file. these results are now
interesting.
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers