commit | a1fd40bfeb7998033913a44b64c02f36f72196b1 | [log] [tgz] |
---|---|---|
author | Logan Chien <loganchien@google.com> | Thu May 04 11:03:16 2017 +0800 |
committer | Logan Chien <loganchien@google.com> | Thu May 04 11:31:50 2017 +0800 |
tree | a30e559e5b73a699ee7a4f646a234d776a4af052 | |
parent | 206e1f132d0f1731d26c17f22d20001f85d0d5ba [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. Test: ./tests/run.py Change-Id: I68d579baeab3c4c7f0928194a6c06b0969346d5f