3 ms·
Yeah you need to be careful what kind of iteration you do. Modifying pointers is likely problematic. Iterating over a range of integers on the other hand should
by jstimpfle 8y ago
Yeah you need to be careful what kind of iteration you do. Modifying pointers is likely problematic. Iterating over a range of integers on the other hand should be easy to optimize.
In most cases, it shouldn't matter and it's much more important to think about the data accesses, due to the relative slowness of memory.