[
https://issues.apache.org/jira/browse/CURATOR-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15798936#comment-15798936
]
Jordan Zimmerman commented on CURATOR-374:
------------------------------------------
For changes that apply to both master and CURATOR-3.0 we usually do the change
directly on master. This is because we always merge master into CURATOR-3.0.
So, it actually might be better to do a new PR that's based off of master.
> Reduce memory usage in TreeCache
> --------------------------------
>
> Key: CURATOR-374
> URL: https://issues.apache.org/jira/browse/CURATOR-374
> Project: Apache Curator
> Issue Type: Improvement
> Components: Recipes
> Affects Versions: 3.2.1
> Reporter: Sylvain Wallez
> Assignee: Scott Blum
> Priority: Minor
>
> TreeCache uses 3 {{AtomicReference}} objects in its tree nodes to ensure
> atomic updates. On large trees (we have 1M nodes) this can cause a
> significant memory overhead.
> Using {{volatile}} fields with a {{AtomicReferenceFieldUpdater}} would avoid
> this while keeping the atomicity garantees.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)