commit | def64f26c32c0f1ddc72cd2b0d5c9f49338c558a | [log] [tgz] |
---|---|---|
author | Victor Hsieh <victorhsieh@google.com> | Wed Nov 08 10:25:11 2017 -0800 |
committer | Victor Hsieh <victorhsieh@google.com> | Wed Nov 08 15:19:41 2017 -0800 |
tree | cf8413833c20c2b26a4d1d82e78f7691202dfc80 | |
parent | a8d534bffa138744002875c972aa4b23f8c8ee3e [diff] |
Optimizations to reduce verity verification time Test: with CPU locked to low freq, verification time of a 400 MB apk is reduced from about 2528 ms to 1942 ms, vs 915 ms of the old algorithm. Writing directly into ByteBuffer's backing array saves around 100 ms but it does not work for DirectByteBuffer, thus I didn't implement this optimization. Bug: 30972906 Change-Id: I00cf782e18a8351569eaf4593188c1ce6796a634