Path: ...!2.eu.feeder.erje.net!feeder.erje.net!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown Newsgroups: comp.lang.c Subject: Re: Baby X is bor nagain Date: Fri, 21 Jun 2024 12:46:40 +0200 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <20240613002933.000075c5@yahoo.com> <20240613174354.00005498@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 21 Jun 2024 12:46:41 +0200 (CEST) Injection-Info: dont-email.me; posting-host="017bd53d5809bfe07afbcdbc63488ddf"; logging-data="3293321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4/U30oTefYfmiGhOgA3PEzj5ANydBHv4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:35dEgcPZUpzYQLTTJByvkHKWQzo= Content-Language: en-GB In-Reply-To: Bytes: 2470 On 20/06/2024 22:31, Vir Campestris wrote: > On 17/06/2024 14:43, David Brown wrote: >>> >>> Compilation speed is important to everyone. That's why so many tricks >>> are used to get around the lack of speed in a big compiler, or so >>> many extra resources are thrown at the problem. >> >> What "tricks" ? > > Precompiled headers sprang to mind in about half a second. > > > > Andy These are used primarily in C++, where you often have /very/ large headers that require a significant amount of analysis. In C, this is not remotely the same scale of problem. C headers are usually far shorter - and far simpler to process. (In a quick test on my system, #include pulled in 792 lines, while #include took 28152 lines.) In C++, compilation speed /is/ an issue. That's why we now have modules there.