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:57:01 UTC

[jira] [Created] (THRIFT-4293) Reuse Mutable TField on read

Mike Rettig created THRIFT-4293:
-----------------------------------

             Summary: 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


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)