summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2018-02-14 15:32:38 +0000
committerAnton Hansson <hansson@google.com>2018-02-15 17:22:08 +0000
commit4e1eba3255f27c0f477a1a49f8c331dd53e8a39b (patch)
tree964deeeca5ffa71308650dacd26be3e6b9c59904 /annotations/generate_annotated_java_files.py
parent526cd9137d3ac3b03f8045442ea39d970bda7e88 (diff)
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
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions