You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (Updated) (JIRA)" <ji...@apache.org> on 2011/10/10 15:47:29 UTC
[jira] [Updated] (AVRO-920) Reusable memory I/O objects
[ https://issues.apache.org/jira/browse/AVRO-920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Douglas Creager updated AVRO-920:
---------------------------------
Attachment: 0001-Reusable-memory-I-O-objects.patch
Here's a patch that adds the following functions:
* {{avro_reader_reset}} is the analog to the existing {{avro_writer_reset}}
* {{avro_reader_memory_set_source}} causes a memory reader object to point at a new source buffer
* {{avro_writer_memory_set_dest}} does the same for a memory writer object
> Reusable memory I/O objects
> ---------------------------
>
> Key: AVRO-920
> URL: https://issues.apache.org/jira/browse/AVRO-920
> Project: Avro
> Issue Type: New Feature
> Components: c
> Affects Versions: 1.6.0
> Reporter: Douglas Creager
> Assignee: Douglas Creager
> Attachments: 0001-Reusable-memory-I-O-objects.patch
>
>
> The {{avro_reader_t}} and {{avro_writer_t}} types handle the serialization of an Avro value to/from a binary buffer. Right now, you have to construct a new instance of these types for every buffer you want to parse. It would eliminate some memory allocation overhead if the reader/writer instances could be reused across parses.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira