OSDN Git Service

Use DecimalFormatSymbols' new default constructor for speed.
authorElliott Hughes <enh@google.com>
Fri, 29 Jan 2010 01:47:00 +0000 (17:47 -0800)
committerElliott Hughes <enh@google.com>
Fri, 29 Jan 2010 01:47:00 +0000 (17:47 -0800)
commitb7df12f1bb73889f354806213b218a3a7d986448
tree5b04c1d12a546d539f0b4a78a2bbbeed707cfe7a
parent3fb21426aa61b97cfa28f2b30efac0f27a8d00f7
Use DecimalFormatSymbols' new default constructor for speed.

This brings "new DecimalFormat" down to ~80us (from ~260us before this patch,
or ~600us this time last week). Also remove some dead code and tighten up some
accessibility.

Depends on https://android-git.corp.google.com/g/38877.
libcore/icu/src/main/java/com/ibm/icu4jni/text/NativeDecimalFormat.java
libcore/icu/src/main/native/NativeDecimalFormat.cpp
libcore/text/src/main/java/java/text/DecimalFormat.java
libcore/text/src/main/java/java/text/DecimalFormatSymbols.java