[
https://issues.apache.org/jira/browse/CAY-1680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219886#comment-13219886
]
Andrus Adamchik edited comment on CAY-1680 at 3/1/12 8:22 AM:
--------------------------------------------------------------
Some interesting data points on ConcurrentHashMap vs HashMap:
http://www.informit.com/guides/content.aspx?g=java&seqNum=246
http://gregluck.com/blog/archives/2009/06/performance-problems-in-concurrenthashmap-vs-synchronized-hashmap/
These are showing the performance hits taken as a tradeoff for concurrency.
Appears to be an issue with large maps only.
was (Author: andrus):
also using async access to DataDomain.nodes map
> Get rid of shared locks in DataDomain metadata lookups
> ------------------------------------------------------
>
> Key: CAY-1680
> URL: https://issues.apache.org/jira/browse/CAY-1680
> Project: Cayenne
> Issue Type: Improvement
> Components: Core Library
> Affects Versions: 3.1M3
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
> Fix For: 3.1M4
>
>
> We can improve performance by using concurrent collections instead of
> synchronizing the HashMap. This includes:
> DataDomain.properties
> DataDomain.nodes
> DataDomain.nodesByDataMapName
> Also instead of reindexing on failed lookups, we can simply lazy-fill
> collection from a given DataMap
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira