mypy
mypy copied to clipboard
Reuse compiled baseline in perf_compare
Comment by @huguesb in #14277:
The repeat checkout/compilation cost is a real problem for repeated measurements when iterating through possible approaches though. At the very least you'd want to keep the reference binary around for as long as possible instead of recompiling it every time.
We could cache build results. If we detect a previous build of the same target commit, reuse it instead of recompiling.
#18471 half-fixes this problem by adding the don't set up flag, but this issue is still unresolved.