summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorYao Chen <yaochen@google.com>2018-02-08 14:50:40 -0800
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-02-12 23:05:41 +0000
commit6b1f5e8bafda6cdd5a6ddab9acb7e7d0398242f6 (patch)
treed4e1f531ace0b55186964af9337d36121e0f7c87 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent9424cf1a07cb9bdd1f90eb5ff8dfbc6040820e2e (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 (cherry picked from commit 8a8d16ceea1e5b7a2f8c41e17b5d993035f50f5d)
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions