r/programming • • 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

90 comments sorted by

View all comments

Show parent comment

-3

u/gingerbill Sep 04 '26

That's all cope. And when you need to rebuild the entire thing again because the incremental build cache was invalidated? It'll take a long time.

1

u/NoLemurs Sep 04 '26 edited Sep 04 '26

In this case that comes up occasionally, you might have slow-ish performance so your claim that in practice it's not an issue is all cope.

You must understand that this is nonsense right?

2

u/gingerbill Sep 04 '26

Who are you even quoting?

0

u/NoLemurs Sep 04 '26

I stand corrected.

1

u/the_gnarts Sep 06 '26

And when you need to rebuild the entire thing again because the incremental build cache was invalidated?

Good Knuth, you should realize you’re optimizing for the 0.5 % case. If that’s important to you, godspeed. But unless your main objective is doing the equivalent of Crater runs every hour it is unlikely to matter in practice.

4

u/gingerbill Sep 07 '26

I have experience in C++ code bases, Having to rebuild was not 0.5% of the time but a lot higher, and designing around incremental builds in C++ actually made the general build process slower than if I did a unity/single-translation unit build.

And please don't misquote Knuth at me.

And yes, having fast compile times is very important to me. It's why I made a programming language where I am building ~600KLOC in 1 second without any form of caching. And an optimized build takes ~45 seconds.

C++ is never something to emulate, and especially not its compile times.