Go to file
Jesse Wilson aceadaecf1 Add a hashing layer to LinkedTreeMap. Instead of having 1 root node, the class now has several root nodes, one for each hash bucket in a hash table.
Compared to LinkedTreeMap, this is slower for small (size=5) maps: 124% slower to get() and 33% slower to create and populate. It's a win for large (size=500) maps: 46% faster to get() but 8% slower to create and populate. And it's a big win for very large (size=50,000) maps: 81% faster to get() and 46% faster to create and populate.

http://microbenchmarks.appspot.com/run/limpbizkit@gmail.com/com.google.common.collect.MapBenchmark

I'm going to follow this up with some simple optimizations: caching local fields and simplifying access. That should narrow the performance gap.
2012-09-17 00:19:44 +00:00
codegen moved code from gson/gson-codegen to top-level 2012-09-04 21:21:46 +00:00
examples/android-proguard-example Retain annotations when using proguard + gson. From patch on issue 358. 2011-12-16 05:18:01 +00:00
extras updated oss-parent version to 7 in gson-extras pom. 2012-08-01 20:57:51 +00:00
gson Add a hashing layer to LinkedTreeMap. Instead of having 1 root node, the class now has several root nodes, one for each hash bucket in a hash table. 2012-09-17 00:19:44 +00:00
lib moved lib at the top-level to share eclipse styles. 2008-09-01 03:27:34 +00:00
metrics Replace switch with if/else when processing whitespace. If/else is faster! 2012-08-27 04:17:29 +00:00
proto updated version of protobuf dependency 2011-04-22 18:29:36 +00:00