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)