You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mike Rettig (JIRA)" <ji...@apache.org> on 2017/08/25 19:58:00 UTC
[jira] [Updated] (THRIFT-4293) Reuse Mutable TField on read
[ https://issues.apache.org/jira/browse/THRIFT-4293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Rettig updated THRIFT-4293:
--------------------------------
Attachment: thrift-TMutableField-read.patch
> Reuse Mutable TField on read
> ----------------------------
>
> Key: THRIFT-4293
> URL: https://issues.apache.org/jira/browse/THRIFT-4293
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Compiler, Java - Library
> Affects Versions: 0.12.0
> Reporter: Mike Rettig
> Labels: patch
> Attachments: thrift-TMutableField-read.patch
>
>
> The struct 'read' method allocates a TField object on each readFieldBegin(). This adds up to a lot of garbage. The patch creates and reuses a mutable TField object for reading.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)