[ 
https://jira.nuxeo.org/browse/NXP-4774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=69876#action_69876
 ] 

Stéphane Lacoin commented on NXP-4774:
--------------------------------------

We replaced the concurrent map by a reference map using soft reference has 
values. 
We also modified the getChild logic for re-fetching parent if needed.

As the reference map does not support concurrent accesses, we synchronized 
methods that get access to the cache map. This may slows down clients. Another 
way of doing is to protect the map by a lock with re-entrant read access.

> client cache should be soft
> ---------------------------
>
>                 Key: NXP-4774
>                 URL: https://jira.nuxeo.org/browse/NXP-4774
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>    Affects Versions: 5.3.x
>            Reporter: Stéphane Lacoin
>            Assignee: Stéphane Lacoin
>             Fix For: 5.3.x
>
>         Attachments: nuxeo-core-api-rcache.patch
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> See attached patch, we could use a soft cache instead of the default one. 
> This will improve memory management on client side.
> Instead of a SoftMap, we should use a ReferenceMap that is included in apache 
> commons-collection and already distributed in nuxeo.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to