commit | 6d051fc68d1b1f2c09eb2e58c26821e1e13935dc | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Nov 22 20:20:00 2016 +0000 |
committer | Narayan Kamath <narayan@google.com> | Wed Nov 23 10:13:03 2016 +0000 |
tree | 03e9cb5b39d86c4692026ae3e9e19bd990d16984 | |
parent | 6b18e8f58cb4d103a161340eb984428d5384f037 [diff] |
PackageManager: Avoid creating encoders for appIds being written /config/sdcardfs We know they will be ASCII, so use String.getBytes(US-ASCII) which is much faster than creating a new ICU based CharsetEncoder for UTF-8 every time we write one of these files (there will be a lot of them). Test: make + manual. Change-Id: I8eb62862ea1083e194d3f23ac68bb40aaae5efd5