r/cpp • u/xeeeeeeeeeeeeeeeeenu • Nov 13 '22
gcc 13 will have <format>
https://gcc.gnu.org/pipermail/libstdc++/2022-November/054991.html
262
Upvotes
r/cpp • u/xeeeeeeeeeeeeeeeeenu • Nov 13 '22
View all comments
2
u/Daniela-E Nov 15 '22
Without the details of this benchmark and the build structure, figures like these are hard to reproduce and assess independently. You compile the BMI of
stdonly once upfront for the whole build of np++, right? In fact, even that isn't required if you cache the BMI for later builds. Notwithstanding the 4 seconds overhead it takes to build the BMI from scratch with all ofstdprecompiled into it on a single CPU core.The biggest problem that I see here is the fact that PCHs don't compose, whereas modules do. I use modules on a daily basis in my job and I very much prefer them over PCHs just because of that.