Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bazel: Reuse sandbox directories #439

Merged
merged 1 commit into from
Mar 14, 2023
Merged

bazel: Reuse sandbox directories #439

merged 1 commit into from
Mar 14, 2023

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Mar 9, 2023

reuse_sandbox_directories should be a flag worth using in all cases. While there is scant documentation the only potential issue with it I was able to find is bazel #17310 (resolved on upstream bazel but not yet released, unlikely to affect us though). It is a non-experimental option since bazel v6.
The flag significantly reduces the sandbox setup/teardown overhead and provides a large compilation speedup on M1 macOS and a noticeable speedup on Linux x86, especially on systems with slow disk I/O (based on Orion's testing), it should be worth enabling globally.

Let's merge this once we have integrated #361, that way we can use the non-experimental flag. I can gather some additional performance metrics at that time.

@fhanau fhanau force-pushed the felix/bazel-reuse-sandbox branch from aaf28b8 to f31420b Compare March 13, 2023 22:08
@mikea mikea self-requested a review March 13, 2023 22:13
@fhanau fhanau force-pushed the felix/bazel-reuse-sandbox branch from f31420b to 34ebf6e Compare March 13, 2023 22:13
@fhanau fhanau marked this pull request as ready for review March 13, 2023 23:51
@fhanau fhanau merged commit c962684 into main Mar 14, 2023
@fhanau fhanau deleted the felix/bazel-reuse-sandbox branch March 23, 2023 01:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants