Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up PostingsEnum when reading positions. (apache#14032)
This PR changes the following: - As much work as possible is moved from `nextDoc()`/`advance()` to `nextPosition()`. This helps only pay the overhead of reading positions when all query terms agree on a candidate. - Frequencies are read lazily. Again, this helps in case a document is needed in a block, but clauses do not agree on a common candidate match, so frequencies are never decoded. - A few other minor optimizations.
- Loading branch information