commit | aa67f684ff43c81e3280c846245ec6ebe907787e | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Tue Sep 20 14:24:21 2016 -0700 |
committer | John Reck <jreck@google.com> | Wed Sep 21 16:10:54 2016 -0700 |
tree | 242c5cfecd604584ce8c70dabe46b92d3bce43e3 | |
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