Remove cachedLocaleData from DecimalFormatSymbols.
Only takes a ~7 microseconds to reconstruct, and aligns this class
closer to upstream. Also dubious if repeatedly reconstructing the
same DFS is a use case worth optimizing for.
before
Experiment {instrument=runtime, benchmarkMethod=time_instantiation, vm=default, parameters={}}
Results:
runtime(ns): min=16011.69, 1st qu.=16011.69, median=16011.69, mean=16011.69, 3rd qu.=16011.69, max=16011.69
after
Experiment {instrument=runtime, benchmarkMethod=time_instantiation, vm=default, parameters={}}
Results:
runtime(ns): min=23865.50, 1st qu.=23865.50, median=23865.50, mean=23865.50, 3rd qu.=23865.50, max=23865.50
Also see upstream commit http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/1d7a6adf499f.
Bug: 31930415
Test: ran CtsLibcoreTests & benchmark
Change-Id: I0966125de1690bd0c14f03b190049e7f6948f402
2 files changed