summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorYao Chen <yaochen@google.com>2018-02-08 14:50:40 -0800
committerYao Chen <yaochen@google.com>2018-02-12 10:38:45 -0800
commit8a8d16ceea1e5b7a2f8c41e17b5d993035f50f5d (patch)
treef3c3ba9f29eebe1c22d79cd49516306093925e21 /tools/aapt2/java/JavaClassGenerator.cpp
parent4f07fa4e748c4f259a7ae9c06f89e44a9c69acff (diff)
Statsd CPU optimization.
The key change is to revamp how we parse/store/match a log event, especially how we match repeated field and attribution nodes, and how we construct dimensions and compare them. + We use a integer to encode the field of a log element. And also encode the FieldMatcher into an integer and a bit mask. The log matching becomes 2 integer operations. + Dimension is stored as encoded field and value pair. Checking if 2 dimensions are equal is then becoming checking if the underlying integers are equal. The integers are stored contiguously in memory, so it's much faster than previous tree structure. Start review from FieldValue.h Test: statsd_test + new unit tests Bug: 72659059 Change-Id: Iec8daeacdd3f39ab297c10ab9cd7b710a9c42e86
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions