diff options
| author | 2022-11-18 16:11:26 +0000 | |
|---|---|---|
| committer | 2022-11-22 14:41:37 +0000 | |
| commit | 28bc7eed7ae51060e70de240fcb57f3d94c4012d (patch) | |
| tree | 5d9ca5c3ce0ceb0494c6a856d4d079f514a40cd1 /libs/androidfw/Util.cpp | |
| parent | bdc9177efd6a295f29a9ac1485f5c9c7f82c7781 (diff) | |
Reduce overhead of writing logcat from protolog method
String.format contains more loop, creates more temporary object
with more conditions than TextUtils.formatSimple.
And the basic syntax provided by formatSimple is enough for use
so far, it would be better to reduce the general cost while
enabling logcat output of protolog.
Bug: 259683790
Test: atest ProtoLogImplTest ProtoLogIntegrationTest LogParserTest
Change-Id: Icbf55c9e75c2343a961a57f83823a90e1f057075
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions