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

ASF subversion and git services commented on AVRO-4074:
-------------------------------------------------------

Commit 515edcd0f341f67eacb47f9997e18cf0f2f4d5f9 in avro's branch 
refs/heads/main from belugabehr
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=515edcd0f ]

AVRO-4074: Optimization for Serializing ASCII Strings (#3198)



> Optimization for Serializing ASCII Strings
> ------------------------------------------
>
>                 Key: AVRO-4074
>                 URL: https://issues.apache.org/jira/browse/AVRO-4074
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.12.0
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Minor
>             Fix For: 1.13.0
>
>         Attachments: CaptureAvroJMHStringGetBytes.PNG
>
>
> Tracing CPU usage of a Avro performance benchmark showed a measurable amount 
> of time in the {{String#getBytes()}} method.
> Every time a String is serialized to the underlying stream, it ends up 
> performing an array instantiation and a array copy.
> Optimize this code path by introducing a scratch buffer that can be re-used 
> instead of instantiating a new one every time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to