4 ms·
I haven't tried to compile these specific examples, but a while ago Eric wrote an article about the abstraction cost of (a previous iteration of) the range libr
by gpderetta 8y ago
I haven't tried to compile these specific examples, but a while ago Eric wrote an article about the abstraction cost of (a previous iteration of) the range library. At least GCC generated pretty much the same assembly as the hand written nested for loops.
Since then, both the library and compilers have improved.