You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Joseph Adler (JIRA)" <ji...@apache.org> on 2013/02/01 21:46:12 UTC

[jira] [Commented] (AVRO-1241) improve trevni performance on string deserialization

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

Joseph Adler commented on AVRO-1241:
------------------------------------

I should add that I have only tested this change with Hadoop 1.0.4, and only with Java 6. I'm not sure if this is a problem unique to our environment or a general issue.
                
> improve trevni performance on string deserialization
> ----------------------------------------------------
>
>                 Key: AVRO-1241
>                 URL: https://issues.apache.org/jira/browse/AVRO-1241
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.7.3
>            Reporter: Joseph Adler
>         Attachments: AVRO-1241
>
>
> I have been trying to implement a storage function for Apache Pig that writes data in Trevni format. I found that the storage function was very slow when reading whole records.
> I did some profiling (with Yourkit) and found that most of the CPU time was being spent in org.apache.trevni.InputBuffer$readString() (specifically in the String() method). I changed to java.nio.charset.CharsetDecoder.decode for deserialization and saw a big improvement. Changes are included in the patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira