[ https://issues.apache.org/jira/browse/AVRO-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17113982#comment-17113982 ]
ASF subversion and git services commented on AVRO-2714: ------------------------------------------------------- Commit 61f162de6f441f65297cf8b57c0e8c36474be7d6 in avro's branch refs/heads/master from Eric Erhardt [ https://gitbox.apache.org/repos/asf?p=avro.git;h=61f162d ] AVRO-2714: [C#] Optimize reading on .NET Core and Standard 2.1+ (#792) * AVRO-2714: [C#] Optimize reading on .NET Core 2.1+ We can use stackallocs and ArrayPool to save on allocations when running on .NET Core. * Add netstandard2.1 target back. > [C#] Use new .NET Core APIs for better performance > -------------------------------------------------- > > Key: AVRO-2714 > URL: https://issues.apache.org/jira/browse/AVRO-2714 > Project: Apache Avro > Issue Type: Bug > Components: csharp > Reporter: Eric Erhardt > Priority: Major > > The BinaryDecoder will create temporary buffers to read strings and floats, > and then throw the buffers away. These unnecessary allocations add objects to > the GC unnecessarily. > > See > [https://github.com/apache/avro/blob/ca38fb98f83e0345ca6c49b0660e9fbd03ea3cd5/lang/csharp/src/apache/main/IO/BinaryDecoder.cs#L144] > [https://github.com/apache/avro/blob/ca38fb98f83e0345ca6c49b0660e9fbd03ea3cd5/lang/csharp/src/apache/main/IO/BinaryDecoder.cs#L95] > > We can multi-target the library and use new APIs on .NET Core 2.1 and .NET > Standard 2.1 to eliminate these allocations. -- This message was sent by Atlassian Jira (v8.3.4#803005)