avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Baldassari (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-989) Java: Improve Builder performance in Specific API
Date Fri, 20 Jan 2012 01:43:41 GMT

    [ https://issues.apache.org/jira/browse/AVRO-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189568#comment-13189568
] 

James Baldassari commented on AVRO-989:
---------------------------------------

Does the second version of this patch look ok?  All the tests are passing for me, but it would
be good to have someone else verify.
                
> 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-v2.patch, 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

        

Mime
View raw message