[
https://issues.apache.org/jira/browse/AVRO-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David McIntosh updated AVRO-1332:
---------------------------------
Attachment: AVRO-1332.patch
I rearranged the code from the existing readers into a new set of readers that
pre-resolve the schemas to allow for much faster reading. I'm unsure of how to
best integrate this into the code. The old reader allowed clients to extend
functionality in a way that is not compatible with the new reader. If that
needs to be preserved we can keep both sets of readers. For now I've put in a
hack that redirects calls to the old reader to the new one so I could make sure
all the unit tests pass.
> Improve C# DatumReader performance
> ----------------------------------
>
> Key: AVRO-1332
> URL: https://issues.apache.org/jira/browse/AVRO-1332
> Project: Avro
> Issue Type: Improvement
> Components: csharp
> Affects Versions: 1.7.4
> Reporter: David McIntosh
> Priority: Minor
> Labels: performance
> Attachments: AVRO-1332.patch
>
>
> The current implementations of the C# datum readers perform resolution of the
> reader and writer schema on every call to Read. In my tests this was causing
> it to perform poorly when reading a large number of records (slower than
> parsing the same data from delimited text files). It would be more efficient
> if the reader only needed to resolve the schemas once.
--
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