diff options
| author | Elliott Hughes <enh@google.com> | 2010-03-05 17:09:59 -0800 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2010-03-05 17:09:59 -0800 |
| commit | 1e91c81c6ffc3d4f3bb69b053d40b880fb251bbc (patch) | |
| tree | 1fc52273baed9ba2060fc1f80ddd8b8d1d28cae4 /vm/compiler/codegen/arm/CodegenDriver.c | |
| parent | 157f1e38736c61640b6bb3c4570ece14c9215c4e (diff) | |
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/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions
