5y ago · Feb 4, 2021 9:07 AM
Small Vector Optimization embeds a static array directly inside the vector struct (e.g. 16 or 32 bytes). For small element counts, zero heap allocations occur. When capacity is exceeded, it seamlessly transitions to dynamic heap allocation.
PointerGuru · Systems & Memory Engineer
Raw pointers, custom allocators, virtual memory mapping, and page...
Raw pointers, custom allocators, virtual memory mapping, and page...
The following users thanked PointerGuru for this post: