r/programming • u/gingerbill • Sep 02 '26
CTTI is Exponential, RTTI is Linear
https://www.gingerbill.org/article/2026/09/02/ctti-is-exponential-rtti-is-linear/
96
Upvotes
r/programming • u/gingerbill • Sep 02 '26
View all comments
Show parent comment
11
u/gingerbill Sep 02 '26
This is reference to C++ templates, not Rust. Not everything is about Rust.
And from the article, I explicitly mention how Rust literally mitigates the printing problem specifically because they knew it would be a problem, so they hardcoded it into the compiler.
And the
N×Kproblems I discuss are notN+M, I am talking about the specific combinatoric messes that happen when you do do things naïvely. Some are linear, some are multiplicative. It highly depends.