Skip to main content
Hot paths skip the heap. These types give you fixed-capacity containers and stack path builders.

BoundedArray

Drop-in for removed std.BoundedArray in Zig 0.15+. Same idea: fixed capacity, dynamic length, nothing on the heap.
Use for hit region lists, workspace IDs, damage rects, and any bounded collection in daemons.

FilePath

Stack buffer sized to fs.max_path_bytes. Build paths from segments without allocating.

FixedString

Small inline string buffer for titles, labels, and protocol names that must stay on the stack. See fixed_string.zig for capacity and append APIs.

When to use what