Skip to content

PSA to speed up builds with multiple projects #15

@peterbrook

Description

@peterbrook

Since Valdi uses bazel and doesn't distribute pre-built libraries yet, it can take a while to build and then if you bootstrap a new project it will need to rebuild everything.

To speed this up, one option is to do something like add this to ~/.bazelrc

build --disk_cache=~/.cache/bazel/disk-cache

I did this and then ran valdi build ios and saw:

  • first project, took about 6.8min to build
  • wrote ~1.6GB into that cache directory
  • Also saw that the bazel-out directory in my project was about 1.5GB
  • second project, took 30sec to build. saw the bazel-out directory was 640MB, I think because bazel only fetches the top level artifacts from cache rather than all intermediate.

In the future, maybe the project can offer a public read-only remote cache server to save more time here too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions