diff options
| author | 2023-02-09 17:54:00 -0500 | |
|---|---|---|
| committer | 2023-03-01 23:15:30 -0500 | |
| commit | 520e88b74059fa7d7e2edd598437f3894ed3bdaf (patch) | |
| tree | d4870531de80421b6ffe0313ae77eadcf9c3aca8 /filesystem/filesystem_test.go | |
| parent | 0897df1466df373f06daa138d52636ad38ae6014 (diff) | |
Avoid deleting bp2build directory
With this CL, we avoid deleting the bp2build directory and regenerating
all BUILD files. Instead, we regenerate BUILD files which have changes
on the filesystem, and delete old BUILD files which should no longer
exist.
This improves incremental Bazel server performance by about ~5 seconds.
Previously, Bazel would have cache misses for regenerated packages, and
would thus need to analyze them even if no meaningful changes took
place.
For ease of implementation, we avoid removing stale (empty) directories
from the bp2build workspace, but this should have no effect on the
build. (These will be removed on next clean)
Test: New integration tests
Test: Manual benchmarking in conjunction with persistent bazel server
Change-Id: I3e489ff403be34040122876012329060a2506366
Diffstat (limited to 'filesystem/filesystem_test.go')
0 files changed, 0 insertions, 0 deletions