aceadaecf1
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. |
||
---|---|---|
.. | ||
docs/javadocs | ||
src | ||
assembly-descriptor.xml | ||
Gson 2.1 notes.txt | ||
LICENSE | ||
pom.xml | ||
README |
Gson is a Java library that can be used to convert a Java object into its JSON representation. It can also be used to convert a JSON string into an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of. Complete Gson documentation is available at its project page http://code.google.com/p/google-gson