Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
New
Description
ExitableTermsEnum calls "checkAndThrow" on every call to next(). This is too expensive; it should sample. I observed ElasticSearch uses the same approach; I think Lucene would benefit from this:
https://github.com/elastic/elasticsearch/blob/4af4eb99e18fdaadac879b1223e986227dd2ee71/server/src/main/java/org/elasticsearch/search/internal/ExitableDirectoryReader.java#L151
CC jimczi
Attachments
Issue Links
- links to