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

Hudson commented on AVRO-2714:
------------------------------

FAILURE: Integrated in Jenkins build AvroJava #883 (See 
[https://builds.apache.org/job/AvroJava/883/])
AVRO-2714: [C#] Optimize reading on .NET Core and Standard 2.1+ (#792) (github: 
[https://github.com/apache/avro/commit/61f162de6f441f65297cf8b57c0e8c36474be7d6])
* (edit) lang/csharp/src/apache/main/Avro.main.csproj
* (edit) lang/csharp/src/apache/main/Protocol/Protocol.cs
* (edit) lang/csharp/src/apache/main/Schema/SchemaName.cs
* (add) lang/csharp/src/apache/main/IO/BinaryDecoder.netstandard2.0.cs
* (edit) lang/csharp/src/apache/main/Schema/EnumSchema.cs
* (edit) lang/csharp/src/apache/main/Schema/Property.cs
* (edit) lang/csharp/src/apache/main/Protocol/Message.cs
* (edit) lang/csharp/src/apache/main/IO/BinaryDecoder.cs
* (edit) lang/csharp/src/apache/main/Specific/ObjectCreator.cs
* (add) lang/csharp/src/apache/main/IO/BinaryDecoder.notnetstandard2.0.cs
* (edit) lang/csharp/src/apache/main/Generic/GenericEnum.cs
* (edit) lang/csharp/src/apache/main/Schema/Field.cs


> [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
>             Fix For: 1.10.0
>
>
> 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)

Reply via email to