~/talk

How Bazel Handles Globs

Talkat BazelCon 2024 · 2024-10-14..10-15· [compilers-and-language-design]
links:none on file
slides:none on file

Bazel exposes file existence to build code via glob patterns but historically evaluates globs twice, causing long stalls and high memory from per-directory graph nodes; a 2017 dynamic analysis approach was reverted, and a flag exists to prefetch/warm large filesystems. The current implementation rewrites recursive glob traversal as a single state machine that collapses local Skyframe nodes, saving memory, while Skyframe still provides incremental correctness; future paths include Java virtual threads to pause execution and avoid double evaluation.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.