You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Steve Niemitz (Jira)" <ji...@apache.org> on 2022/03/19 14:23:00 UTC

[jira] [Created] (BEAM-14134) Many coders cause significant unnecessary allocations

Steve Niemitz created BEAM-14134:
------------------------------------

             Summary: Many coders cause significant unnecessary allocations
                 Key: BEAM-14134
                 URL: https://issues.apache.org/jira/browse/BEAM-14134
             Project: Beam
          Issue Type: Improvement
          Components: sdk-java-core
            Reporter: Steve Niemitz
            Assignee: Steve Niemitz


Many coders (BigEndian*, Map, Iterable, Instant) use DataInputStream to read longs/ints/shorts.  Internally each DataInputStream allocates ~200 bytes of buffers when instantiated.  This means every long, int, short, etc decoded allocates over 200 bytes.

We should eliminate all uses of DataInputStream in hot-paths and replace it with something more efficient.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)