Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14134

Many coders cause significant unnecessary allocations

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.38.0
    • sdk-java-core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              SteveNiemitz Steve Niemitz
              SteveNiemitz Steve Niemitz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 20m
                  5h 20m