]> git.cworth.org Git - notmuch/commit
lib: parse index.as_text
authorDavid Bremner <david@tethera.net>
Fri, 6 Jan 2023 00:02:05 +0000 (20:02 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 2 Apr 2023 22:22:36 +0000 (19:22 -0300)
commit3f5809bf28becbddfed9ff33d6f1242346904c23
tree9ad7cad85d6dc1a0d7e6796e22032cefcd72b121
parentc6733a45c8ff698505ff330d2edce92c90cbc946
lib: parse index.as_text

We pre-parse into a list of compiled regular expressions to avoid
calling regexc on the hot (indexing) path.  As explained in the code
comment, this cannot be done lazily with reasonable error reporting,
at least not without touching a lot of the code in index.cc.
lib/database-private.h
lib/open.cc