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

Performance issue in AvroUtils.checkTypeName

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 2.28.0
    • Fix Version/s: 2.30.0
    • Component/s: io-java-avro, sdk-java-core
    • Labels:
      None
    • Flags:
      Patch

      Description

      AvroUtils.checkTypeName (which is called a LOT) is always creating a StringBuilder and doing a bunch of appends and toString's even if the condition is true. It's not using a proper format string and varargs for the parameters. This results in a lot of extra objects being created when using Avro.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dkulp Daniel Kulp
                Reporter:
                dkulp Daniel Kulp
              • 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 - 20m
                  20m