Liste des Groupes | Revenir à cl c |
On 24/06/2024 18:15, David Brown wrote:On 24/06/2024 18:19, bart wrote:On 24/06/2024 16:09, David Brown wrote:On 24/06/2024 16:00, bart wrote:>
How many times does this need repeated? I want my builds to be /fast enough/. Fast enough is all that anyone needs. As long as a task is fast enough not to hinder other tasks, doing it any faster gives no benefits. I care that my builds are fast enough - I don't care if they are faster. (I'm quite happy if they are faster, of course.)No one cares about your figures. No one, except you, cares about /my/ figures. Sometimes people care about the build speed of /their/ code, using /their/ choice of compiler and /their/ choice of options on /their/ computers. Do you /really/ not understand that the timings you get are utterly pointless to everyone else?Obviously /you/ don't care about fast build systems.
It's perfectly alright for 90% of the time to build a project to be spent executing auto-conf scripts.Please point me to references of Usenet posts where I have said anything remotely like that. In particular, show me where I have said I use autoconf for my projects.
Some people also cared enough about linkers to develop a new generation of linker (maybe 'gold', maybe something even newer) that is supposed to be 5 times the speed of 'ld'.Linking can take a significant amount of time. In particular, C++ linking is usually /far/ more work than C linking. So for big C++ projects the build time - including compiling and linking - can often be a lot slower than people like.
No, your "car" is, at best, a home-made go-cart. It can go really fast down steep slopes with a disregard to safety, and that seems to be all you want from it. That's fine for you, since that's all you want to do.>
No one denies that "gcc -O0" is faster than "gcc -O3" for individual compiles, and that the percentage difference will vary and sometimes be large.You're wrong. My 'car' would do the equivalent job of driving around town. Unless someone /wanted/ a vehicle that was more like a 40-tonne truck.Yes, gcc ticks all the boxes. Except the last.>
No, it does not tick all the boxes. The toolchains I use tick most of them (including all the ones that I see as hard requirements), and do better than any alternatives, but they are not perfect. They do, however, happily pass the last one. I have yet to find a C compiler that was not fast enough for my needs.
>For me it would be like driving my car at walking pace all over town, even though most of my time would be spent at various stopping places.>
You still don't understand. You are telling people how fantastically fast your car is, without realising it is just a remote-controlled toy car. Nobody cars if your toy runs faster than a real tool - people will still choose the real tool. And the real tools run fast enough for real developers doing real work.
Let's go back a few weeksLet's not.
For my work? No. For /some/ other people's work? Yes.None that I know of. Your worries about compiler speed are imaginary or self-imposed.So cartoons like https://xkcd.com/303/ have no basis in fact? It's just made up?
> You /do/ realise that the only person that "suffers" from slow gcc timesIt seems they have already figured it out. If their build times are too long for convenience, do something about it. Options include buying faster build machines, distributing builds across existing workstations (since most machines are 95%+ idle), changing languages, improving the way the builds are done, using more dynamic linking (fixing whatever their technical hinder was), using partial links, changing tools, changing languages.
> is /you/ ?
Forums abound with horror stories. Here are quotes from just one thread:
------------------
Well a build used to take 6 or 7 minutes, and that's a long time for my little attention span. I'd always get distracted waiting for builds and waste even more time.
In short, if a developer is waiting on a build to run for one hour and doing nothing in that timeframe, the business is still spending $75 on average for that developer’s time—and potentially losing out on time that developer could be focusing on building more code.
I worked on a system where only linking the binary took 40-50 minutes. For some technical reasons there was no dynamic linking - only static - so you had to go through that delay for the slightest change.
This is why my computer and build server have an 11900k. Builds went from 45 minutes to 15.
This is the reason I stopped being a Java developer and embraced JS. Even the 1-3 minutes of build time was a big hit for me because it was just enough time for me to get distracted by something else and then the next thing you know, you have wasted 30 mins.
------------------
Maybe you should tell these guys how it's done!
The professional approach. If each build is wasting $75 (figures from your forum post), it doesn't take many of them to cover the cost of a faster machine.>The wrong approach.
If gcc was ten times slower than it is, it might get annoying sometimes, and I'd then get a faster computer.
Les messages affichés proviennent d'usenet.