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

Java: Improve Builder performance in Specific API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • java
    • None

    Description

      The Specific API generates Builder objects for each record. This builder uses a boolean[] to store flags for each field to indicate whether the field is set or not.

      This is not space efficient, a boolean[] takes 16 bytes plus one byte per field, rounded up to the nearest 8 byte interval.

      This can be improved on by using BitSet for large records, and bitmasks on an int for records with less than 32 fields.

      Attachments

        1. AVRO-989.patch
          6 kB
          James Baldassari
        2. AVRO-989-v2.patch
          12 kB
          James Baldassari

        Activity

          People

            Unassigned Unassigned
            scott_carey Scott Carey
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: