Expand description
Build memory accounting.
One MemoryBudget is shared by every large buffer of a build: sort
buffers (counted by capacity, so Vec growth is included), merge read
buffers and the text indexing buffers. A buffer reserves bytes before it
grows; when the pool is full its owner spills to disk instead. The budget
is the --memory-budget-mb limit, and the build report records the peak.
Structsยง
- Memory
Budget - Reservation
- Bytes held from a budget, returned when dropped.