[
https://issues.apache.org/jira/browse/LUCENE-6885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989719#comment-14989719
]
Christine Poerschke commented on LUCENE-6885:
---------------------------------------------
If the {{segmentReaders == null}} check is a complexity concern then perhaps
{code}
final Map<String,Integer> segmentReaders = (oldReaders == null ? new
HashMap<>(1) : new HashMap<>(oldReaders.size()));
{code}
instead?
> StandardDirectoryReader (initialCapacity) tweaks
> ------------------------------------------------
>
> Key: LUCENE-6885
> URL: https://issues.apache.org/jira/browse/LUCENE-6885
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Christine Poerschke
> Assignee: Christine Poerschke
> Priority: Minor
> Attachments: LUCENE-6885.patch
>
>
> proposed patch against trunk to follow
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]