You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kyoungha Min (Jira)" <ji...@apache.org> on 2020/03/06 07:30:00 UTC
[jira] [Closed] (BEAM-9461) CLONE - To use
ByteArrayOutput/InputStream without synchronization
[ https://issues.apache.org/jira/browse/BEAM-9461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kyoungha Min closed BEAM-9461.
------------------------------
Fix Version/s: Not applicable
Resolution: Abandoned
> CLONE - To use ByteArrayOutput/InputStream without synchronization
> ------------------------------------------------------------------
>
> Key: BEAM-9461
> URL: https://issues.apache.org/jira/browse/BEAM-9461
> Project: Beam
> Issue Type: Wish
> Components: sdk-java-core
> Reporter: Kyoungha Min
> Priority: Minor
> Fix For: Not applicable
>
>
> It would be nice to see Beam using custom ByteArrayInput/OutputStream without synchronization. It currently uses `ThreadLocal`, so using thread-safe stream seems unnecessary. And all streams should never be access by more than 1 thread from the start anyway.
> Simply getting rid of the synchronized keyword will speed up about ~500 times for single byte access. Something like org.apache.beam.sdk.util.VarInt will get significant benefit from it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)