aboutsummaryrefslogtreecommitdiff
path: root/python/scripts/precompile_python.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix non-deterministic python compilationAnas Sulaiman2024-02-071-9/+12
| | | | | | | | | | | | This CL fixes timestamps for zip entries to a hardcoded value to ensure deterministic zip archives across checkouts, not just for incremental builds. The value chosen for the fixed date is the same as the one used by soong_zip. Bug: b/322788229 Test: Ran a few builds and verified that mdate for zipped files are fixed as well as the generated zip files have identical hashes. Change-Id: I3cd6fcf559d4d83d8813c93319b46e267ae64a2b
* Fix non-deterministic python compilationAnas Sulaiman2024-02-011-9/+19
| | | | | | | | Timestamps in pyc files and zip archives were causing cache misses in RBE. Bug: b/322788229 Test: Ran a few local builds and verified improved cache hit rate for metalava actions. Change-Id: I9375694d26a107f5c0c43bbd685bd8e86349d187
* Precompile python sourcesCole Faust2023-01-271-0/+61
This signifigantly improves the startup time of soong-built python binaries. For example, running `m apexer && time out/host/linux-x86/bin/apexer` gives 0.734s before this cl, and 0.094s after. Fixes: 259718110 Test: Presubmits Change-Id: Ib19e83e2c60c39a849525be117279c318de3afa7