You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2024/10/04 14:06:00 UTC

[jira] [Assigned] (AVRO-4074) Optimization for Serializing ASCII Strings

     [ https://issues.apache.org/jira/browse/AVRO-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Mollitor reassigned AVRO-4074:
------------------------------------


> 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
>
>
> 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)