Adrien Grand created LUCENE-9059: ------------------------------------ Summary: Reduce garbage created by ByteBuffersDataOutput Key: LUCENE-9059 URL: https://issues.apache.org/jira/browse/LUCENE-9059 Project: Lucene - Core Issue Type: Improvement Reporter: Adrien Grand
When profiling indexing because of LUCENE-9027, I noticed that indexing produces a lot of unnecessary garbage because of ByteBuffersDataOutput, which can easily get fixed: - reset() is implemented using streams, which apparently create lots of objects - copyTo has an optimization for the case that ByteBuffers are backed by an array that never gets used because toBufferList makes the buffers read-only, which in-turn disallows access to the array -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org