3 ms·
This is my heuristic - make your best guess (you should have some idea), double it if you're uncertain, allocate the nearest power of 2 above that. If during te
by krapp 8y ago
This is my heuristic - make your best guess (you should have some idea), double it if you're uncertain, allocate the nearest power of 2 above that. If during testing it turns out not to be large enough, realloc as necessary.