5/34
Part 1 of 7 · alloc and freeLearn and do

A request that fits nowhere reads every slot, so alloc is O(S)

A request that fits nowhere scans every slot, so alloc is O(S) for an arena of S units. free clears one slot per unit of the block.

Measured on arenas of S units holding 100 live blocks, each followed by a free gap as long as itself, with a request one unit bigger than any gap, so it fits nowhere:

Predict

The slot scan took 0.27 ms on an arena of 10,000 units. About how long on 10,000,000?

Pick an answer above to see the rest