commit | 2ca5d8601c09ecb9466d286a7d8e2f5eb520510b | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Thu Oct 03 17:30:14 2019 +0200 |
committer | Adrian Roos <roosa@google.com> | Fri Oct 18 18:22:30 2019 +0200 |
tree | d11ba4c47995d69e69a0d67d38bc556b4e014b07 | |
parent | cd45b2ab20987665ec9324ac81a8e16a995a5da9 [diff] |
ProtoLog: Cache the result of ProtoLogImpl.isEnabled(ProtoLogGroup) We introduce a generated class ProtoLog$Cache, which contains a field for each ProtoLogGroup to cache whether it is enabled or not. This both makes lookup faster, and reduces code size. Test: make droid Change-Id: I581c87849c875918b182eff85996b6d19a6755ec