autoninja: Generate UUID for AUTONINJA_BUILD_ID inside autoninja.py
Currently, {autoninja, autoninja.bat} scripts generate AUTONINJA_BUILD_ID by calling `python3 -c "import uuid; print(uuid.uuid4())"`. This CL moves the logic at the beginning `autoninja.py`. This also reduces the overhead of starting Python interpreter, which takes around 60ms on my Windows workstaion. ``` > hyperfine python3 Benchmark 1: python3 Time (mean ± σ): 63.4 ms ± 7.8 ms [User: 25.7 ms, System: 33.7 ms] Range (min … max): 51.0 ms … 80.2 ms 41 runs ``` Change-Id: I93d5b65f3c5542c3a93a3de1f27a5aa5d06c09a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5737673 Reviewed-by: Fumitoshi Ukai <ukai@google.com> Commit-Queue: Fumitoshi Ukai <ukai@google.com> Auto-Submit: Junji Watanabe <jwata@google.com> Commit-Queue: Junji Watanabe <jwata@google.com>changes/73/5737673/5
parent
7ec0494263
commit
8552a27900
Loading…
Reference in New Issue