avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Carey (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-989) Java: Improve Builder performance in Specific API
Date Thu, 05 Jan 2012 23:03:39 GMT
Java:  Improve Builder performance in Specific API

                 Key: AVRO-989
                 URL: https://issues.apache.org/jira/browse/AVRO-989
             Project: Avro
          Issue Type: Improvement
          Components: java
            Reporter: Scott Carey

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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message