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

ASF subversion and git services commented on SOLR-14576:
--------------------------------------------------------

Commit ad7ad02238de8a61bc32673e553178792f711445 in lucene-solr's branch 
refs/heads/branch_8x from Noble Paul
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=ad7ad02 ]

SOLR-14576 : Do not use SolrCore as keys in a WeakHashMap (#1586)



> HttpCacheHeaderUti.etagCoreCache should not use a SolrCore as key
> -----------------------------------------------------------------
>
>                 Key: SOLR-14576
>                 URL: https://issues.apache.org/jira/browse/SOLR-14576
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> GC performance is affected when the key is a complex data structure. We can 
> make it
> {code}
> private static WeakIdentityMap<String, EtagCacheVal> etagCoreCache = 
> WeakIdentityMap.newConcurrentHashMap();
> {code}
> instead of
>  {code}
> private static WeakIdentityMap<SolrCore, EtagCacheVal> etagCoreCache = 
> WeakIdentityMap.newConcurrentHashMap();
> {code}
>  



--
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

Reply via email to