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

Performance issue in AvroUtils.checkTypeName

Details

    • Task
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.28.0
    • 2.30.0
    • io-java-avro, sdk-java-core
    • None
    • 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

              dkulp Daniel Kulp
              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