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

Beam JIRA Bot commented on BEAM-6503:
-------------------------------------

This issue was marked "stale-assigned" and has not received a public comment in 
7 days. It is now automatically unassigned. If you are still working on it, you 
can assign it to yourself again. Please also give an update about the status of 
the work.

> PCollectionViews$SimplePCollectionView.hashCode once again allocates memory 
> (fix reverted, then fixed again)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-6503
>                 URL: https://issues.apache.org/jira/browse/BEAM-6503
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>    Affects Versions: 2.10.0
>            Reporter: Vojtech Janota
>            Priority: P4
>
> I'm currently profiling memory consumption of our Beam pipeline and have 
> noticed that
>     
> org.apache.beam.sdk.values.PCollectionViews$SimplePCollectionView.hashCode()
> makes noticeable heap allocations. The implementation is:
>     return Objects.hash(tag);
> That itself translates to:
>     return Arrays.hashCode(values);
> Which performs implicit array creation in order to call:
>     public static int Arrays.hashCode(Object a[]);
> Instead of the helper call, doing simple:
>     tag.hashCode();
> Seems more appropriate.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to