5 ms·
> stuff you shouldn't need to care about Such as? I don't believe any C++ compilers are producing extra machine code just for the fun of it.
by zabzonk 2mo ago
> stuff you shouldn't need to care about
Such as? I don't believe any C++ compilers are producing extra machine code just for the fun of it.
- tcfhgj 2mo agoperhaps std::variant https://news.ycombinator.com/item?id=25315225 https://news.ycombinator.com/item?id=25315225
- zabzonk 2mo ago> I literally have never found a place where `std::variant` has any positives that can't be written a different, clearer way with drastically better compile time and run time performance. So, don't use std::variant? To produce performant output from a C++ compiler, you have to make the same sort of informed decisions that you would if you were writing assembler. Possibly not using the standard library at all.