summaryrefslogtreecommitdiffstats
path: root/vm/compiler
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-03-05 17:09:59 -0800
committerElliott Hughes <enh@google.com>2010-03-05 17:09:59 -0800
commit1e91c81c6ffc3d4f3bb69b053d40b880fb251bbc (patch)
tree1fc52273baed9ba2060fc1f80ddd8b8d1d28cae4 /vm/compiler
parent157f1e38736c61640b6bb3c4570ece14c9215c4e (diff)
downloadandroid_dalvik-1e91c81c6ffc3d4f3bb69b053d40b880fb251bbc.tar.gz
android_dalvik-1e91c81c6ffc3d4f3bb69b053d40b880fb251bbc.tar.bz2
android_dalvik-1e91c81c6ffc3d4f3bb69b053d40b880fb251bbc.zip
Use a manually-synchronized HashMap instead of ConcurrentHashMap in LocaleData.
ConcurrentHashMap is our slowest choice at the moment: ConcurrentHashMapGet 782 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HashMapGet 272 XXXXXXXXXX||||||||||||||| HashMapGet_Synchronized 317 XXXXXXXXXXXX||||||||||||| HashtableGet 325 XXXXXXXXXXXX|||||||||||||| LinkedHashMapGet 280 XXXXXXXXXX||||||||||||||| The cost of some commonly-created temporary objects (such as DateFormatSymbols) is dominated by the lookup of the locale data. This patch takes "new DateFormatSymbols" from 3us to 2.3us on passion/froyo (a 23% drop). Bug: 2492505
Diffstat (limited to 'vm/compiler')
0 files changed, 0 insertions, 0 deletions