Sujet : Re: We have a new standard!
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.c++Date : 02. Jan 2025, 15:47:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250102164750.00000977@yahoo.com>
References : 1 2
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Wed, 1 Jan 2025 18:25:27 +0200
Michael S <
already5chosen@yahoo.com> wrote:
Now to why, despite said above, I wouldn't use std::print() in its
current incarnation neither in production nor in hobby programs:
because compilation is too slow. ~4 seconds on the old home PC. I
didn't try on newer machines yet, but would be surprised if any of
them beats 2 seconds. Which is way above my threshold of
inconvenience.
More experiments showed that slowness of compilation is caused by C++20
part (format()) rather than by C++23 addition.
It's somewhat less bad with -O1, instead of original -O2 and yet less
bad with -Og or -O0. But even for -O0 compilation takes over 2 sec.
Still above my personal threshold for annoyance.