4 ms·
Has there been any credible study of compile-time cost of constexpr vs. template metaprogramming? I am assuming template metaprogramming is so bad because even
by hamstergene 5y ago
Has there been any credible study of compile-time cost of constexpr vs. template metaprogramming?
I am assuming template metaprogramming is so bad because even elementary data structures have to employ ton of helper types that have to be matched/deduced against gigantic list of all other types and kept all in memory, while straightforward interpretation should not need any of that. I would expect constexpr to perform similarly to interpreted languages, which should be no different than invoking an external code generator written in Python, for example.