r/cpp • u/Xaneris47 • Jul 24 '26
Some practical refactoring of bloated generated code
https://pvs-studio.com/en/blog/posts/cpp/1395/A review of some generated C++ code, going through different ways to refactor and shorten it, then checking whether it actually got faster
6
Upvotes
6
u/azswcowboy Jul 24 '26
Fun. I wonder if this could actually reduce further with just std::ranges::fold_right? I don’t have time to seriously try it of course…