lucene icon indicating copy to clipboard operation
lucene copied to clipboard

Make DirectMonotonicReader.Meta more compact

Open original-brownbear opened this issue 4 months ago • 4 comments

Even with the all-zero bit-length optimization recently introduced, these Meta instances tend to consume a non-trivial amount of heap still. We can do away with almost 40% of their size by removing the offsets array that can be calculated on the fly when creating the readers which translates into tens of MB of heap or more for some ES use cases with high segment + field count. Also added a singleton DirectMonotonicReader instance for the common all-zero-values that we have a Meta singleton for already.

original-brownbear avatar Oct 06 '24 23:10 original-brownbear