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

Sachin Goel commented on FLINK-2404:
------------------------------------

In fact, here are some detailed timings under the JavaProgramTestBase cases:
                 No call to add  Add Long   Add long
without reuse:     131.6          122.8        95.8
with reuse:        49.15          43.0         44.35
collection:        78.5           84.9         80.75

[These are timings averaged over 20 runs]

> LongCounters should have an "addValue()" method for primitive longs
> -------------------------------------------------------------------
>
>                 Key: FLINK-2404
>                 URL: https://issues.apache.org/jira/browse/FLINK-2404
>             Project: Flink
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.10
>            Reporter: Stephan Ewen
>             Fix For: 0.10
>
>
> Since the LongCounter is used heavily for internal statistics reporting, it 
> must have very low overhead.
> The current "addValue()" method always boxes and unboxes the values, which is 
> unnecessary overhead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to