apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.61k stars 1.02k forks source link

Introduce singleton for PackedInts.NullReader of size 256 #13232

Closed original-brownbear closed 6 months ago

original-brownbear commented 6 months ago

Size 256 is very common here through the monotonic long values default page size. In ES we're seeing many MB O(10M) of duplicate instances of this size relatively quickly. => adding a singleton for it to save some heap

original-brownbear commented 6 months ago

Thanks for taking a look Adrien!

Can you add a CHANGES entry?

Done :) Hope 9.11.0 was correct?