You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Adrien Grand (Jira)" <ji...@apache.org> on 2019/11/26 13:08:00 UTC
[jira] [Resolved] (LUCENE-9059) Reduce garbage created by
ByteBuffersDataOutput
[ https://issues.apache.org/jira/browse/LUCENE-9059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand resolved LUCENE-9059.
----------------------------------
Fix Version/s: 8.4
Resolution: Fixed
Thanks [~dawid.weiss].
> 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
> Priority: Minor
> Fix For: 8.4
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org