Re:The true cost of linked lists
by trgn on Monday June 06, 2022 @11:06AM
(#31641442)
Agreed. I'd go a step further, there's a real-world heuristic that this implies.
Initially, prefer to task CPU over memory allocation. Crufty allocation generally will always have a real negative impact felt by the end-user. A low memory footprint is always a win, while going for a (theoretical) fast running time may be effort wasted.
Initially, prefer to task CPU over memory allocation. Crufty allocation generally will always have a real negative impact felt by the end-user. A low memory footprint is always a win, while going for a (theoretical) fast running time may be effort wasted.