Skip to content

THRIFT-3306: Java: TBinaryProtocol: Use a single temp byte[] buffer#596

Closed
evanj wants to merge 1 commit intoapache:masterfrom
evanj:THRIFT-3306
Closed

THRIFT-3306: Java: TBinaryProtocol: Use a single temp byte[] buffer#596
evanj wants to merge 1 commit intoapache:masterfrom
evanj:THRIFT-3306

Conversation

@evanj
Copy link

@evanj evanj commented Aug 25, 2015

Reduces allocations and GC when TBinaryProtocol is allocated repeatedly.

Originally separate byte[] arrays were allocated for each integer type, and
a separate array for input and output. However, one buffer of the largest
size (8 bytes for i64) can be used for all purposes.

Reduces allocations and GC when TBinaryProtocol is allocated repeatedly.

Originally separate byte[] arrays were allocated for each integer type, and
a separate array for input and output. However, one buffer of the largest
size (8 bytes for i64) can be used for all purposes.
@evanj
Copy link
Author

evanj commented Sep 29, 2015

Note: the Travis CI build may have failed, but it failed to compile some parts of the C++ code, so I suspect this is due to a flaky test and is not legitimate, since I didn't touch any of the C++ stuff.

@asfgit asfgit closed this in 60aa640 Sep 30, 2015
allengeorge pushed a commit to allengeorge/thrift that referenced this pull request Jan 1, 2017
Reduces allocations and GC when TBinaryProtocol is allocated repeatedly.

Originally separate byte[] arrays were allocated for each integer type, and
a separate array for input and output. However, one buffer of the largest
size (8 bytes for i64) can be used for all purposes.

This closes apache#596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant