commit | c05d98f64e62f57c34e3e00b05261e94b781b1e3 | [log] [tgz] |
---|---|---|
author | Tomasz Mikolajewski <mtomasz@google.com> | Mon Mar 07 18:01:45 2016 +0900 |
committer | Tomasz Mikolajewski <mtomasz@google.com> | Tue Mar 08 09:26:55 2016 +0900 |
tree | b48fc4bc05b3d13f0baa29f5ede039415f8fdd99 | |
parent | 77dd59fc2a0db94f0c58e17097fd6f07c1b5db8c [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