lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1416) reduce contention in CoreContainer#getCore()
Date Tue, 22 Feb 2011 06:27:38 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message