You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Sylvain Wallez (JIRA)" <ji...@apache.org> on 2017/01/04 10:36:58 UTC
[jira] [Created] (CURATOR-374) Reduce memory usage in TreeCache
Sylvain Wallez created CURATOR-374:
--------------------------------------
Summary: 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
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)