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

2017-08-25 Thread Mike Rettig (JIRA)

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

Mike Rettig updated THRIFT-4293:

Description: 
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. 

The patch modifies the TBinaryProtocol as an example, but the other protocols 
should probably be optimized as well (including TProtocolDecorator).

  was: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. 


> 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: mutable_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. 
> The patch modifies the TBinaryProtocol as an example, but the other protocols 
> should probably be optimized as well (including TProtocolDecorator).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


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

2017-08-25 Thread Mike Rettig (JIRA)

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

Mike Rettig updated THRIFT-4293:

Attachment: mutable_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: mutable_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)


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

2017-08-25 Thread Mike Rettig (JIRA)

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

Mike Rettig updated THRIFT-4293:

Attachment: (was: 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
>
> 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)


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

2017-08-25 Thread Mike Rettig (JIRA)

 [ 
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)