curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CURATOR-374) Reduce memory usage in TreeCache
Date Sun, 08 Jan 2017 16:15:58 GMT

    [ https://issues.apache.org/jira/browse/CURATOR-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15809622#comment-15809622
] 

ASF GitHub Bot commented on CURATOR-374:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/curator/pull/184


> 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
>             Fix For: 3.2.2, 2.11.2
>
>
> 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)

Mime
View raw message