🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #25

Re: Taming The Switch-Statement

#25
From: David Brown
Date: Wed, 07 Oct 2026 11:11
46 lines
3933 bytes
On 07/10/2026 12:49, bart wrote:
> On 07/10/2026 08:07, David Brown wrote:

>> So for the love of $DEITY, give it a break!  You write plenty of 
>> interesting posts - your addiction to milliseconds is not part of that.
> It is annoying though that no one wants to acknowledge that gcc IS slow.
> 

People /do/ understand that gcc takes time, and people /would/ prefer if 
it did the same job, faster.

What seems to totally pass you by is that there is a difference between 
"slow" and "too slow".

No one is happy if there builds take 10 minutes.  Equally, no one cares 
if their builds take 1 second or 0.1 seconds.  If I have to compile 20 
files, and each takes 1 second to compile, it would be annoying to do 
them one at a time - but if they all compile in parallel, it takes just 
1 second of my time.  No one - but you - is bothered as long as 
real-life compile times are fast enough that they don't get in the way 
of development.

Your tools are useless to me - they could just as easily be "cat file.c 
 > /dev/null".  Your other favourite toy compilers, like tcc, are 
equally useless.  Since they are useless, they are not applicable in a 
speed comparison.

When I compare compile times with /real/ tools - things that do good 
optimisations and good static checking, with support for modern language 
standards and the extensions I want, and target the devices I need - I 
have no reason to call gcc "slow".  clang, or Green Hills, or 
Metrowerks, or Keil might be a bit faster in some cases, maybe a bit 
slower in other cases, but I have not seen significant differences.  So 
I will not call gcc "slow" until I see another tool that does 
approximately as good a job for my needs, and does so several times 
faster than gcc.

And I will not call gcc "too slow" unless I find its speed a problem or 
inconvenience.

Of course I will always be happier if gcc gets faster, but that is not 
the same as thinking it is slow.  I am glad that the GCC developers put 
their limited time and resources into other things than the speed of 
compilation of C code.

Technical Details
Message-ID: <11a59d8$2osq7$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <119qf6l$2rmg3$1@dont-email.me> <119r8u3$34nce$1@dont-email.me> <119rau4$35ugq$1@dont-email.me> <119uo2c$3kc0t$1@paganini.bofh.team> <119uqnv$d6j2$1@dont-email.me> <20261005143559.157@kylheku.com> <11a1arj$1e8ks$1@dont-email.me> <11a295r$1lqal$3@dont-email.me> <11a2e2m$ef4o$2@dont-email.me> <11a2j83$1qu9n$1@dont-email.me> <11a2maf$1soc7$1@dont-email.me> <11a2vrn$20jj3$1@dont-email.me> <EI7xS.906$aNSb.21@fx20.iad> <11a37gv$23ruj$1@dont-email.me> <11a3vcj$88e7$1@paganini.bofh.team> <11a43hl$2e5k2$1@dont-email.me> <11a4r3i$2k7oa$1@dont-email.me> <11a583p$2pmng$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Wed, 7 Oct 2026 13:11:36 +0200
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <11a59d8$2osq7$2@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <119r8u3$34nce$1@dont-email.me>
 <119rau4$35ugq$1@dont-email.me> <119uo2c$3kc0t$1@paganini.bofh.team>
 <119uqnv$d6j2$1@dont-email.me> <20261005143559.157@kylheku.com>
 <11a1arj$1e8ks$1@dont-email.me> <11a295r$1lqal$3@dont-email.me>
 <11a2e2m$ef4o$2@dont-email.me> <11a2j83$1qu9n$1@dont-email.me>
 <11a2maf$1soc7$1@dont-email.me> <11a2vrn$20jj3$1@dont-email.me>
 <EI7xS.906$aNSb.21@fx20.iad> <11a37gv$23ruj$1@dont-email.me>
 <11a3vcj$88e7$1@paganini.bofh.team> <11a43hl$2e5k2$1@dont-email.me>
 <11a4r3i$2k7oa$1@dont-email.me> <11a583p$2pmng$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 07 Oct 2026 11:11:37 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2913095"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX199T4+9hRPjPm75WXpuj2Zy7Bls3KLCJqc="; posting-host="fd0a1bf01e024f2af36d0493face3db6"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CQaVGfdS3Jy0c/knkqsPkMW9LqQ= sha256:IjyT4vBDBTj1AomHVVuTXcq+Nm78jA/c4sAI9E3umyo=
	sha1:TXJ1OuOnbifdwkUVrZvZDJE820c= sha256:a6wmZbc0wvyYHA4xKbc41ec2ZbqPlM2SgEa9McURdkY=
In-Reply-To: <11a583p$2pmng$1@dont-email.me>
Content-Language: en-GB, nb-NO