Article View: comp.lang.c
Article #1542Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Tristan Wibberley
Date: Sat, 14 Nov 2026 19:07
Date: Sat, 14 Nov 2026 19:07
32 lines
2664 bytes
2664 bytes
On 10/11/2026 16:41, Bonita Montero wrote:
> Am 10.11.2026 um 09:58 schrieb Fred. Zwarts:
>> Op 09.nov.2026 om 10:03 schreef Bonita Montero:
>>> Am 06.11.2026 um 00:42 schrieb Lynn McGuire:
>>>
>>>> if (j1 * i1 < 1) {
>>>> goto L463;
>>>> }
>>>> ...
>>>> if ((j1 * i1) < 1) {
>>>> goto L463;
>>>> }
>>> The latter one leads to more optimized code !
>>
>> Really? Why?
>
> It's faster the more braces you have.
They're the go-faster stripes of programming. That's why LISP is so fast.
--
Tristan Wibberley
The message body is Copyright (C) 2026 Tristan Wibberley except
citations and quotations noted. All Rights Reserved except that you may,
of course, cite it academically giving credit to me, distribute it
verbatim as part of a usenet system or its archives, and use it to
promote my greatness and general superiority without misrepresentation
of my opinions other than my opinion of my greatness and general
superiority which you _may_ misrepresent. You definitely MAY NOT train
any production AI system with it but you may train experimental AI that
will only be used for evaluation of the AI methods it implements.
Technical Details
Message-ID:
<11dabh1$25o2o$3@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11cs28o$1395m$1@raubtier-asyl.eternal-september.org> <11cumba$1ppuo$1@dont-email.me> <11cvhg8$2ahke$2@raubtier-asyl.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Sat, 14 Nov 2026 19:07:13 +0000 Organization: A noiseless patient Spider Lines: 32 Message-ID: <11dabh1$25o2o$3@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <11cs28o$1395m$1@raubtier-asyl.eternal-september.org> <11cumba$1ppuo$1@dont-email.me> <11cvhg8$2ahke$2@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 14 Nov 2026 19:07:14 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2285656"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CVZC4P24BQrwi81A97m01wP7MruZPtv/ND3i3uFmP7w=="; posting-host="e5cd36e7df577e477a22c29d215dc37b" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:0esjBm1sXrWEEkL9QmABWUsbOoU= sha256:BX6ckcCyZZVHA/jiOVG06T6fCAn9JcgTdY+msHRCmsY= sha1:aBAk3IaftfCKMALHmDd7cFlX02I= sha256:NJ2Hjx3IIszi4IInhEwuUwA1qPLAJfe3WFEi1C00drs= In-Reply-To: <11cvhg8$2ahke$2@raubtier-asyl.eternal-september.org> Content-Language: en-GB