diff options
author | jessicahandojo <jessicahandojo@google.com> | 2016-08-02 14:57:50 -0700 |
---|---|---|
committer | jessicahandojo <jessicahandojo@google.com> | 2016-08-23 15:11:41 -0700 |
commit | 19545c4773467d7920c6b9744e4187b7b6775639 (patch) | |
tree | 6b9b7abb7887019b6101319057cdfd0376bd47c0 /annotations/generate_annotated_java_files.py | |
parent | d41476f64cc5d3827075e92dba11f6405eb8d8c1 (diff) |
Update for mirror::String compression 16 to 8 bit
Modifying Length() and access to field count to neglect
the first bit of count for mirror::String compression purpose
(All-ASCII String will be stored in 8-bit characters instead of 16-bit)
Memory improvement is 33% (from 6.03% to 4.03%, total String memory
from all apps per total memory of all apps) measured on Angler
with Hprof tools
Test: vogar --benchmark libcore/benchmarks/src/benchmark/regression
1. StringBenchmark.java
+ After changes faster by 2% - 4%
2. StringBuilderBenchmark.java
+ After changes slower by 4% - 6%
Bug: 31040547
Change-Id: Ia6b91b7563dd2ff4a6f460d6be2c114fe02808f0
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions