Skip to content

Recommend reducing runfiles tree creation #107

Description

@ulfjack

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

excessive-runfiles-before-2023-03-24

After

excessive-runfiles-after-2023-03-24

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featSuggests new features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions