sandboxfs: A Failed Attempt to Speed Up Bazel's macOS Sandboxing

A Google engineer attempted to improve Bazel's sandboxing performance on macOS with the sandboxfs project. sandboxfs used a user-space file system to create virtual file hierarchies more efficiently, replacing Bazel's original symlink approach. However, due to the fact that macOS symlink performance wasn't the main bottleneck, along with implementation issues and changes in the macOS ecosystem, sandboxfs was eventually abandoned. Despite this, the author believes its core idea—efficient sandbox creation—still holds promise for solving Bazel's sandboxing performance problems on macOS.
Read more