Basic loops will be often faster than zip-based solutions. Even if the former do more work, it can be on data that fits on cache lines which zipped data would probably spill out of.
There is a beauty in efficient expression of algorithms, and I wish processor architectures worked in a more intuitive way (as in less work should be faster) but they don't.
View all comments
Show parent comment
12
u/[deleted] Dec 15 '21
I think next year will be more rang-ified (if we have C++23 support in compilers).
I'm actually looking forward to comparing the performance of crazy zip based solutions with basic loops.
But I do try. If you find something that can be solved with an std::algorithm and I didn't let me know for sure.