hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-13615) Convert uses of AtomicLong for counter metrics to LongAdder
Date Fri, 21 Oct 2016 18:27:58 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-13615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Andrew Wang resolved HADOOP-13615.
    Resolution: Duplicate

> Convert uses of AtomicLong for counter metrics to LongAdder
> -----------------------------------------------------------
>                 Key: HADOOP-13615
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13615
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: metrics
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Andrew Wang
> LongAdder (available in JDK8) can provide much better performance than AtomicLong since
it uses thread locals under the hood.
> We should consider switching over our uses of AtomicLong and friends over to LongAdder.
> If we want to target for JDK7, we can also pull in the implementation since it's pure
Java (public domain):
> http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/LongAdder.java?view=co

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org

View raw message