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

ASF GitHub Bot commented on FLINK-2404:
---------------------------------------

Github user mxm commented on the pull request:

    https://github.com/apache/flink/pull/942#issuecomment-125603184
  
    We can add a comment that the new ones are faster on primitives. It is not 
possible to deprecate the older ones because they are inherited from the 
Accumulator interface which uses Generics. It's just an optimization.


> 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