3 ms·
"I can recompile the entire thing from scratch in ~4.3s. That’s around ~900 TUs, including external dependencies, tests, and examples" In 30 years of using C++
by ralferoo 7mo ago
"I can recompile the entire thing from scratch in ~4.3s. That’s around ~900 TUs, including external dependencies, tests, and examples"
In 30 years of using C++ this is the first time I've ever come across "translation unit" being abbreviated to TU and it took a bit of effort to figure out what the author was trying to say. Not sure why they felt the need to abbreviate this when they explain PCH for instance, which is a far more commonly used term.
Thought I'd add the context here to help anyone else out.
- pjmlp 7mo agoIt is quite common when being around WG21 stuff, just as info.
- dataflow 7mo ago> Not sure why they felt the need to abbreviate this It's super common terminology for people around those spaces; they probably didn't even think about whether they should abbreviate it.
- SuperV1234 7mo agoI've updated the article to say "translation unit" the first time "TU" is introduced. The data was also incorrect due to an oversight on my part, and it's now much more accurate and ~50% faster across the board.