/[Apache-SVN]
ViewVC logotype

Revision 1221828


Jump to revision: Previous Next
Author: bryanduxbury
Date: Wed Dec 21 18:13:29 2011 UTC (12 years, 4 months ago)
Changed paths: 5
Log Message:
THRIFT-1469. java: Java isset space optimization

This patch gives the generated code some variable-sized options for the isset bit vector. The compiler will attempt to use byte, short, int and long types before reverting to a BitSet for structs with a LOT of optional fields. This should save a fair amount of memory in a lot of cases.

Patch: Brian Bloniarz

Changed paths

Path Details
Directorythrift/trunk/compiler/cpp/src/generate/t_java_generator.cc modified , text changed
Directorythrift/trunk/lib/java/build.xml modified , text changed
Directorythrift/trunk/lib/java/src/org/apache/thrift/EncodingUtils.java modified , text changed
Directorythrift/trunk/lib/java/test/org/apache/thrift/TestOptionals.java added
Directorythrift/trunk/test/ManyOptionals.thrift added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26