]> git.notmuchmail.org Git - notmuch/commit
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)
commitbc0a873b18cd77572c53369e5899134102f93e5e
treed527f00758971d4dcdd608fca1c1d260a02af1a8
parent793cbf80495b8230e0b4de6ac609e2ca88b7dd4b
search : Extend "intial burst" optimization to return all results by chunks

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.
TODO
notmuch-search.c