/[Apache-SVN]
ViewVC logotype

Revision 930593


Jump to revision: Previous Next
Author: bryanduxbury
Date: Sat Apr 3 22:52:03 2010 UTC (14 years, 1 month ago)
Changed paths: 5
Log Message:
THRIFT-752. java: Use a faster Stack implementation in TCompactProtocol

This patch adds ShortStack, an internal implementation of Stack that works directly on primitive short objects, and makes TCompactProtocol use this. A brief performance test shows that this makes serialization about 8% faster and deserialization about 15% faster, though the actual gain you see will be dependent on the nature of your structs - the more levels, the more gain.

Changed paths

Path Details
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/ShortStack.java added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/protocol/TCompactProtocol.java modified , text changed
Directoryincubator/thrift/trunk/lib/java/test/org/apache/thrift/TestShortStack.java added
Directoryincubator/thrift/trunk/lib/java/test/org/apache/thrift/protocol/ProtocolTestBase.java modified , text changed
Directoryincubator/thrift/trunk/lib/java/test/org/apache/thrift/protocol/TestTCompactProtocol.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26