diff options
| author | Elliott Hughes <enh@google.com> | 2009-09-21 14:08:38 -0700 |
|---|---|---|
| committer | Dan Egnor <egnor@google.com> | 2009-11-17 14:42:24 -0800 |
| commit | 0ee370b97b9ee7f2f321d9d04bd0976362b6f6f0 (patch) | |
| tree | a9694d4a667e75ba8cd11b95b9a8f2316cc20cbf /vm/compiler/codegen/arm/LocalOptimizations.c | |
| parent | 838598912874c49de45aba3baac644d177920115 (diff) | |
Consistently use Formatter's cached NumberFormat.
%f is a lot more expensive than it should be because we're not using the cached
NumberFormat (as we are for %d). Running the microbenchmark I added to the
bug (times in ms, on a Cortex A8):
old new
new Formatter %f 1732 811
String.format %d 635 651
String.format %f 1752 900
reuse Formatter %f 1521 188
Double.toString + 149 148
Double.toString append 33 33
StringBuilder.append 143 139
Bug: 1476
Diffstat (limited to 'vm/compiler/codegen/arm/LocalOptimizations.c')
0 files changed, 0 insertions, 0 deletions
