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

Performance improvements Validating encoder/decoder for nested records

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • java
    • None

    Description

      With nested records, Parser.pushProduction() gets called multiple times (once per record nesting). Since we do not have any events for beginning and end of records, it enhances the performance if we flatten the grammar, wherever possible.

      The forthcoming patch does just that.

      Try org.apache.avro.io.Perf -N

      On my machine (HP laptop with Cygwin) the improvement is about 20%.

      Attachments

        1. AVRO-328-test.patch
          2 kB
          Thiruvalluvan M. G.
        2. AVRO-328.patch
          8 kB
          Thiruvalluvan M. G.

        Activity

          People

            thiru_mg Thiruvalluvan M. G.
            thiru_mg Thiruvalluvan M. G.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: