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

Mark Miller commented on SOLR-1416:
-----------------------------------

Agreed - without some credible data, this seems like the wrong change. The 
synch'd operation would appear to be too cheap to benefit from a reader/writer 
lock.

Not sure if a ConcurrentHashMap could be used though...I think we would lose a 
slightly higher sync level we need? 

> reduce contention in CoreContainer#getCore()
> --------------------------------------------
>
>                 Key: SOLR-1416
>                 URL: https://issues.apache.org/jira/browse/SOLR-1416
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>            Reporter: Noble Paul
>            Priority: Minor
>         Attachments: SOLR-1416.patch
>
>
> every call to CoreContainer#getCore() is synchronized . We should reduce the 
> contention . The writes are very infrequent and reads are frequent . How 
> about using a ReadWriterLock?

-- 
This message is automatically generated by JIRA.
-
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