Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.12.0
-
None
-
Patch Available
-
Patch
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).