Issue metadata
Sign in to add a comment
|
Investigate moving getResources().getString() -> PakFile.getString() |
||||||||||||||||||||
Issue descriptionStrings take up more room within .arsc files compared to .pak files. When accessing the strings from java only via getResources.getString(R.ID_FOO), we could save space by using a .pak file here instead and accessing via PakFile.getString(PakIds.IDS_FOO). Pak files are super simple, and so using JNI wouldn't be necessary here. We can write the logic in java to extract a string given an idea (it's just a binary search on an mmapped file). Before doing this, we should first answer: * How many strings are accessed only by getString(r.FOO), and never via xml resources Other subtleties here: 1. We extract .pak on start-up, so would need to block on the file being extracted. 2. Our pak file whitelist strips out resources not used in C++. This would need to be enhanced to account for java-only uses.
,
Jul 7 2017
Related bug about strings that could be removed from .arsc if made available: bug 719409
,
Jul 20 2017
,
Nov 7 2017
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by benhenry@chromium.org
, May 9 2017