[ https://issues.apache.org/jira/browse/AVRO-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187366#comment-13187366 ]
Scott Carey commented on AVRO-989: ---------------------------------- Overall looks good, but there is a test failure. Running org.apache.avro.tool.TestSpecificCompilerTool Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.708 sec <<< FAILURE! This fails because it is expecting the old output from the specific compiler. All other tests passed. > 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 > Attachments: AVRO-989.patch > > > 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