3 ms·
> paying more than a second to compile a single print statement is not OK. I should expect most people have more than one. Have you ever seen a benchmark which
by tialaramex 3y ago
> paying more than a second to compile a single print statement is not OK.
I should expect most people have more than one. Have you ever seen a benchmark which tried just calling some library feature once and then pronounced it slow? Like, hey, your new hash table is slow, I called insert on it with one value and that took ages / How about the next time? / What do you mean next time, it's slow, I'm never using it again.
Perhaps this all points to a process issue, that your development process is... let's say unusual and that's driven you to make some perverse trade offs because you aren't able to imagine a way to do what you do with the technology everybody else is using. Maybe they're not the crazy ones ?
https://twitter.com/magdraws/status/1551612747569299458 https://twitter.com/magdraws/status/1551612747569299458
The good news, though probably in the distant future for you, is that C++ standard library modularisation should dramatically speed up compilation since the compiler won't need to laboriously discover all the facts about foo.h over, and over, and over again as it is mentioned in each place it's used.
But you're right, I don't use any of this stuff in anger, I write Rust. I admire fmt because I think it's a remarkable achievement to have a type checked formatter as a library function.
- jstimpfle 3y ago> I should expect most people have more than one. Oh, I have many seconds, and I'm already spending many of them, to the point that I'm not willing to just give them out for free. In a project with dozens or hundreds of files I'm not willing to introduce a central dependency that slow down each of them by one additional second. > The good news, though probably in the distant future for you, is that C++ standard library modularisation should dramatically speed up compilation since the compiler won't need to laboriously discover all the facts about foo.h I'll believe when I see it. Have you tested it? Currently, we can't use modules at work since we're not on the newest compiler.