[ 
https://issues.apache.org/jira/browse/LUCENE-5113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13708777#comment-13708777
 ] 

Robert Muir commented on LUCENE-5113:
-------------------------------------

+1, the little 8KB pending buffers can really add up, e.g. if you have an 
OrdinalMap over 25 segments (with zero terms!), thats 200KB just for pending[]s.

We could try to solve it in another way if it makes appending* complicated or 
would hurt performance, e.g. maybe this map could use some other packed ints 
api.

There are a few other places using this buffer though: I think fieldcache term 
addresses, indexwriter consumers, not sure what else.

                
> Allow for packing the pending values of our AppendingLongBuffers
> ----------------------------------------------------------------
>
>                 Key: LUCENE-5113
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5113
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>
> When working with small arrays, the pending values might require substantial 
> space. So we could allow for packing the pending values in order to save 
> space, the drawback being that this operation will make the buffer read-only.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to