[ https://issues.apache.org/jira/browse/SOLR-14576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210149#comment-17210149 ]
ASF subversion and git services commented on SOLR-14576: -------------------------------------------------------- Commit 8c41418c0fb33fdc0ee6aedbd52917c63b447756 in lucene-solr's branch refs/heads/master from Noble Paul [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=8c41418 ] 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