Skip to content

cache_computed_file_digests is a useful performance option that should be documented #14401

@c0d3h4x0r

Description

@c0d3h4x0r

Description of the problem / feature request:

cache_computed_file_digests is a useful performance option that should be documented.

Feature requests: what underlying problem are you trying to solve with this feature?

This option is useful for improving incremental build speed on large codebases.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Immediately following a full build, do a no-op incremental build on our codebase containing ~400,000 input files. It takes about 15 minutes.

Immediately following a full build, do a no-op incremental build with --cache_computed_file_digests=400000. It takes about 15 seconds.

What operating system are you running Bazel on?

Windows 10

What's the output of bazel info release?

Starting local Bazel server and connecting to it...
release 4.2.1

If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.

n/a

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

fatal: not a git repository (or any of the parent directories): .git

Our codebase is stored in a company-internal Perforce server, not in Git.

Have you found anything relevant by searching the web?

No.

Any other information, logs, or outputs that you want to share?

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)not staleIssues or PRs that are inactive but not considered staleteam-DocumentationDocumentation improvements that cannot be directly linked to other team labelsteam-PerformanceIssues for Performance teamstype: documentation (cleanup)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions