gf2121 opened a new issue, #12598:
URL: https://github.com/apache/lucene/issues/12598

   ### Description
   
   
https://blunders.io/jfr-demo/indexing-4kb-2023.09.25.18.03.36/allocations-drill-down
   
   The allocation profile for nightly indexing benchmark shows that 
`FST#ByteStore` occupies a rather high ratio because we always allocate a new 
32KB `byte[]` when construct a `FST#Compiler` each time calling 
`Lucene90BlockTreeTermsWriter$TermsWriter#writeBlocks`. Maybe we can keep a 
`ByteStore` in `Lucene90BlockTreeTermsWriter` and reuse it across FSTs to avoid 
allocation. But `ByteStore` is package private for FST and not designed for 
reusable for now. Do we have better options?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to