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

Mike Drob commented on SOLR-8383:
---------------------------------

bq. +    HashMap<String, QueryResponseWriter> m= new HashMap<>(14);
HashMap default load factor is 0.75, so this will still get resized after the 
10th item. We should either use the two argument constructor with loadFactor = 
1.0 or a larger initial capacity to compensate (19).

bq. +    Map<String, T> result = new LinkedHashMap<>(map.entrySet().size());
Why not {{map.size()}}? Also, same comments about load factor apply.

> SolrCore.java container initialCapacity tweaks
> ----------------------------------------------
>
>                 Key: SOLR-8383
>                 URL: https://issues.apache.org/jira/browse/SOLR-8383
>             Project: Solr
>          Issue Type: Task
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: SOLR-8383.patch
>
>
> 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]

Reply via email to