We have a build that is slow due to excessive local runfiles tree creation, while most actions are cached (or executed) remotely and do not need a runfiles tree. Enabling --nobuild_runfiles_links can reduce the time of such builds by a factor of 2 or more.
I attached before/after screenshots that show the effect of setting this flag. In this build, we still see an excessive amount of "acquiring semaphore" operations locally, but at least it is significantly faster.
Problem
We have a build that is slow due to excessive local runfiles tree creation, while most actions are cached (or executed) remotely and do not need a runfiles tree. Enabling
--nobuild_runfiles_links
can reduce the time of such builds by a factor of 2 or more.I attached before/after screenshots that show the effect of setting this flag. In this build, we still see an excessive amount of "acquiring semaphore" operations locally, but at least it is significantly faster.
Before
After