curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CURATOR-447) TreeCache: Improve memory usage and concurrent update logic
Date Mon, 08 Jan 2018 15:49:00 GMT


ASF GitHub Bot commented on CURATOR-447:

Github user njhill commented on the issue:
    @dragonsinth @Randgalt any interest in these updates? FWIW I've had them running in production
for some time.

> TreeCache: Improve memory usage and concurrent update logic
> -----------------------------------------------------------
>                 Key: CURATOR-447
>                 URL:
>             Project: Apache Curator
>          Issue Type: Improvement
>          Components: Recipes
>    Affects Versions: 3.3.0, 2.12.0
>            Reporter: Nick Hill
>            Priority: Minor
>              Labels: performance
> Jira reduced per-node memory usage
in {{TreeCache}}. It can be improved further via removal of the {{nodeState}} field - its
{{LIVE}} state corresponds exactly to the adjacent {{childData}} field being non-null, and
a sentinel {{ChildData}} value can be used for the {{DEAD}} state. This simplification also
reduces the room for bugs and state inconsistencies.
> Other improvements included:
> * A further simplification to have {{TreeNode}} extend {{AtomicReference}}, which obviates
the need for an explicit {{childData}} field
> * More robust cache update logic (in get-children and get-data event callbacks)
> * Avoid overhead of incrementing/decrementing the {{outstandingOps}} atomic integer post-initialization

This message was sent by Atlassian JIRA

View raw message