std.experimental.allocator.building_blocks.quantizer

Members

Structs

Quantizer
struct Quantizer(ParentAllocator, alias roundingFunction)

This allocator sits on top of ParentAllocator and quantizes allocation sizes, usually from arbitrary positive numbers to a small set of round numbers (e.g. powers of two, page sizes etc). This technique is commonly used to:

Meta