cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (Issue Comment Edited) (JIRA)" <>
Subject [jira] [Issue Comment Edited] (CAY-1680) Get rid of shared locks in DataDomain metadata lookups
Date Thu, 01 Mar 2012 08:23:58 GMT


Andrus Adamchik edited comment on CAY-1680 at 3/1/12 8:22 AM:

Some interesting data points on ConcurrentHashMap vs 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:
>             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.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:!default.jspa
For more information on JIRA, see:


View raw message