summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorYunfan Chen <yunfanc@google.com>2019-04-01 15:34:44 +0900
committerYunfan Chen <yunfanc@google.com>2019-04-03 11:37:19 +0900
commit8546b219c6baf71e66e36da1bf408f58a81ac2cd (patch)
treeebc58ce5ef37b5fbf417e0693414c421d81292f2 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent265a265250b30ff1d2bfbbaaa694d64e356f3204 (diff)
Use mPidMap instead of mProcessNames to get process with pid info
With newly introduced mPidMap, we do not need to iterate every process to find the one we need with pid information. Use mPidMap directly to accelerate the getting process method. By doing this, the time consumption of getConfiguration get reduced by 12.5%. The time consumption percentage of getConfiguration in getOrientationChanging is reduced from around 87% to 41%. Also, in prepareSurfacesLocked, the time consumption of getOrientationChanging reduced from 37% to 25%. Test: go/wm-smoke Test: ddms Bug: 129389526 Change-Id: I77511ce3385049e8c812e8e3706482a48457df0c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions