![]() 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. |
||
---|---|---|
codegen | ||
examples/android-proguard-example | ||
extras | ||
gson | ||
lib | ||
metrics | ||
proto |