4 ms·
well, these are dynamic structures which are constructed over a period of time with pointers pointing all over the place...imagine creating a singly-linked-list
by signa11 7y ago
well, these are dynamic structures which are constructed over a period of time with pointers pointing all over the place...imagine creating a singly-linked-list of 20/30m integers, and then running a trivial sum/accumulate over the whole thing vs doing the same thing with a vector/array.