avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Douglas Creager (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-920) Reusable memory I/O objects
Date Mon, 10 Oct 2011 13:47:29 GMT

     [ 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
* {{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


View raw message