Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3643

GenericDatumWriter Potential Performance improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.11.1
    • None
    • java
    • None

    Description

      Sorry for the seemingly naïve nature of this observation, however whilst trying to resolve a Kafka client performance issue on Mainframe I noticed a potential opportunity in Avro serialisation. I am using a compiled Avro schema and noticed with my special profiling tool (see attached image) that writeWithoutConversion calls resolveUnion which performs three HashMap.get's.

      Seeing this a compiled serialiser is there not an opportunity to eliminate these calls which would reduce the Record serialisation cost to something closer the absolute minimum .writeString (.writePrimitive).

       

      Attachments

        1. image-2022-10-18-17-38-44-273.png
          213 kB
          Paul Anderson

        Issue Links

          Activity

            People

              Unassigned Unassigned
              JavaPerformance Paul Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: