]> git.notmuchmail.org Git - notmuch/commit
emacs: Use streaming S-expr parser for search
authorAustin Clements <amdragon@MIT.EDU>
Sat, 1 Jun 2013 00:40:07 +0000 (20:40 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 1 Jun 2013 12:00:40 +0000 (09:00 -0300)
commit89efd5717ab26cf626ceb67964b9b4af8820e52c
tree834b8be79250fe7001254014ebdf4eb82a7c0e63
parentb89ffba3012603d3eb9b1e144bf0a81480588ea3
emacs: Use streaming S-expr parser for search

In addition to being the Right Thing to do, this noticeably improves
the time taken to display the first page of search results, since it's
roughly an order of magnitude faster than the JSON parser.
Interestingly, it does *not* significantly improve the time to
completely fill a large search buffer because for large search
buffers, the cost of creating author invisibility overlays and
inserting text (which slows down with more overlays) dominates.
However, the time required to display the first page of results is
generally more important to the user experience.
emacs/notmuch.el
test/emacs