You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Andrew Gaul (JIRA)" <ji...@apache.org> on 2013/10/24 03:50:41 UTC

[jira] [Updated] (THRIFT-2238) Add option to store binary data as byte[] instead of ByteBuffer

     [ https://issues.apache.org/jira/browse/THRIFT-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Gaul updated THRIFT-2238:
--------------------------------

    Description: 
My Java application stores many Thrift structs in-memory with small binary fields.  I would like an option for the generator to use byte[] internally instead of ByteBuffer, saving the 48 bytes per struct.

I have a patch in-hand to address this although it conflicts with THRIFT-2233.  I will attach it after THRIFT-2233 goes in and I rebase the change.

  was:
My Java application stores many Thrift structs in-memory with small binary fields.  I would like an option for the generator to use byte[] internally instead of ByteBuffer, saving the 48 bytes per struct.

I have a patch in-hand to address this although it conflicts with THRIFT-2233.  Will attach it after it goes in and I rebase the change.


> Add option to store binary data as byte[] instead of ByteBuffer
> ---------------------------------------------------------------
>
>                 Key: THRIFT-2238
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2238
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler
>    Affects Versions: 0.9.1
>            Reporter: Andrew Gaul
>
> My Java application stores many Thrift structs in-memory with small binary fields.  I would like an option for the generator to use byte[] internally instead of ByteBuffer, saving the 48 bytes per struct.
> I have a patch in-hand to address this although it conflicts with THRIFT-2233.  I will attach it after THRIFT-2233 goes in and I rebase the change.



--
This message was sent by Atlassian JIRA
(v6.1#6144)