4 ms·
The thing that makes the heap expensive is the allocator calls. If you allocate a big vector once and never resize it, there's not much of a cost.
by pdpi 4y ago
The thing that makes the heap expensive is the allocator calls. If you allocate a big vector once and never resize it, there's not much of a cost.