THRIFT-318. java: Performance of HashSet for enumeration VALID_VALUES seems poor
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 10 Feb 2009 18:10:57 +0000 (18:10 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 10 Feb 2009 18:10:57 +0000 (18:10 +0000)
commitc707855048258ab60e78d602509513b1394ec962
tree9107eb9ede4489c3fb910045a7803be745664f08
parent538e344122315036f0abdd8f3fa89b7f9dd1d310
THRIFT-318. java: Performance of HashSet for enumeration VALID_VALUES seems poor

Instead of a HashSet, enums will now use the special IntRangeSet implementation.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@743037 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc
lib/java/src/org/apache/thrift/IntRangeSet.java [new file with mode: 0644]