diff options
| author | 2020-06-08 18:50:14 -0700 | |
|---|---|---|
| committer | 2020-06-10 17:18:13 -0700 | |
| commit | 74a1a483fcc10c37b06637df335d4d78862f0841 (patch) | |
| tree | 9c88b9d87d10ef83f92d5b5880d661599d416d58 /tools/warn/java_warn_patterns.py | |
| parent | e88ef9299ad647f5a1da16213efd25e7adfc1c10 (diff) | |
More performance improvements
Instead of using `x := $(x) foo`, make sure `x` is initialized first,
then use `x += foo`.
For a aosp-master/aosp_crosshatch-userdebug build, this takes the build
from 49s to 33s (no significant difference in peak memory)
Bug: 158488548
Test: build-aosp_crosshatch.ninja is the same before/after
Change-Id: I41fb7611030dd3ba824f896a9c9eadbdd218f464
Merged-In: I41fb7611030dd3ba824f896a9c9eadbdd218f464
(cherry picked from commit fd1e67b8ce041c96ddb8ca99a375182f50fad7a4)
Diffstat (limited to 'tools/warn/java_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions