]> git.notmuchmail.org Git - notmuch/commitdiff
search : Extend "intial burst" optimization to return all results by chunks
authorCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 16:42:45 +0000 (17:42 +0100)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 17:14:47 +0000 (18:14 +0100)
This way, the user gets a steady (but bursty) stream of reults. We
double the chunk size each time since each successive chunk has to
redo work from all previous chunks.

Of course, the overall time is thereby slower, as the price we pay for
increased responsiveness. With a search returning about 17000 thread
results I measured a total time of 48.8 seconds before this change and
58.4 seconds afterwards.


No differences found