commit | 2f4954d0f7c792b4047a53768183d4a6eaf8e9c5 | [log] [tgz] |
---|---|---|
author | Logan Chien <loganchien@google.com> | Thu May 04 11:03:16 2017 +0800 |
committer | Logan Chien <loganchien@google.com> | Thu Jun 08 12:53:02 2017 +0800 |
tree | 93f3aef6f7592c41387e314219f24dd4ae6842c2 | |
parent | 6a32ac82fa4035d8de7f77d200f97ddeb1b86cfd [diff] |
vndk-def: Use find() to find terminating char This commit replaces naive loop with `find(b'\0', offset)`. The performance is improved by 3x if the script was run by a python2 interpreter. Bug: 37867089 Test: ./tests/run.py Change-Id: I190ebd1a2184a83216e44abdcaf7ecf7f1ed990c Merged-In: I68d579baeab3c4c7f0928194a6c06b0969346d5f