summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jared Duke <jdduke@google.com> 2024-10-24 23:04:14 +0000
committer Jared Duke <jdduke@google.com> 2024-10-24 23:05:04 +0000
commit7d1977d120341e9d00b994572a058626f25f1e4b (patch)
tree37cddb9bf8cd13b64ebc74ae7c16dfd9aa48c508 /api/api.go
parentb1071dc678849cb9608909590165db5dc160d728 (diff)
Optimize SystemConfig feature parsing
A number of system features are dependent on global system properties, as opposed to the usual XML feature sources. Currently, these are read and applied redundantly for every different XML permission source. This is unnecessary. Instead, simply read and apply these features once, after all other permissions have been parsed. This saves ~10ms on a recent phone and up to ~100ms on more resource-constrained devices (e.g., Wear). Flag: EXEMPT refactor Test: presubmit Bug: 203143243 Change-Id: I76ba9626e9fb67a4822aacb438277f7fd708907d
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions