[build] Speed up incremental & no-op builds. (#26815)
Per gn documentation, the output timestamp can remain the same if all outputs remain the same, resulting in large time savings since dependent targets don't need to be rebuilt. See: https://gn.googlesource.com/gn/+/HEAD/docs/reference.md#target-declarations-action_declare-a-target-that-runs-a-script-a-single-time-outputs Currently, `copy_debug_symbols.py` updates timestamps unconditionally, resulting in slower incremental and no-op builds. We change its current behavior to not update the timestamps if the debug symbols will not change. Local testing indicates around a `20s` improvement for no-op and incremental builds: - Control: http://go/paste/4800062489100288 - Experiment: http://go/paste/5727928869453824 See https://fxbug.dev/79001. CC: @naudzghebre
Showing
想要评论请 注册 或 登录