summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorTomasz Mikolajewski <mtomasz@google.com>2016-03-07 18:01:45 +0900
committerTomasz Mikolajewski <mtomasz@google.com>2016-03-08 09:26:55 +0900
commitc05d98f64e62f57c34e3e00b05261e94b781b1e3 (patch)
treeb48fc4bc05b3d13f0baa29f5ede039415f8fdd99 /tools/aapt2/java/JavaClassGenerator.cpp
parent77dd59fc2a0db94f0c58e17097fd6f07c1b5db8c (diff)
Improve sorting performance by 2.5 times.
This CL replaces List<String> with String[], which prevents from calling get() and set() multiple times within a loop, in favor of System.arraycopy(). Scanning a directory with 10K files went down from 1200ms to 450ms. Bug: 27286016 Change-Id: Id533480934f739905a845cb0e13fe862e361b3db
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions