4 ms·
The example is slightly contrived (the entire linked list was preallocated), but seems like the same technique could be a useful performance optimization, such
by BobbyTables2 2y ago
The example is slightly contrived (the entire linked list was preallocated), but seems like the same technique could be a useful performance optimization, such as if successive calls to malloc commonly return pointers with a particular stride.