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/
99
Upvotes
r/programming • u/gingerbill • Sep 02 '26
View all comments
Show parent comment
7
u/SelfDistinction Sep 03 '26
Not necessarily. I think Swift manages to do a lot of deduplication and even send polymorphic functions through the C ABI boundary that way, though I'm not familiar with the details.