diff options
author | John Reck <jreck@google.com> | 2016-09-20 14:24:21 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-09-21 16:10:54 -0700 |
commit | aa67f684ff43c81e3280c846245ec6ebe907787e (patch) | |
tree | 242c5cfecd604584ce8c70dabe46b92d3bce43e3 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d8a53abd804d49a10971a5ecb4e025fe10808bb6 (diff) |
Fix a bunch of repeated reads of a ro.* property
SystemProperties.get() is not particularly fast,
especially if a string is returned. Since ro.* values
are unable to be changed, there's no need to
continously re-query them. Cache the value at
static init time to trivially fix this.
Test: refactoring CL.
Change-Id: Iccb021d3cb2ba3a4a1d0048ddec6811bb7409eec
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions