Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4116153pxf; Tue, 23 Mar 2021 03:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPAryW8c1sB4m4aL/l9ygt1w5TswKXwoYnrvbSeiel8/BtphqkCbZ1wWT6BYG7K4FNcogl X-Received: by 2002:aa7:db4f:: with SMTP id n15mr3830668edt.12.1616494118642; Tue, 23 Mar 2021 03:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616494118; cv=none; d=google.com; s=arc-20160816; b=0epy0Ym0RUPRaMZKUY0HkKpXQSdxUJRt0wxPd8ODUCXa6ViyvpvsZn42/pv+daZc8I 6I03XAZFj/yFbtZX8zTH65UFN11OScuvvfjidI4oYCJ+KHcWAHwax67TtLg4v0G2BG0i fKqtrSMuyQwUuHhnAnGUPww3pYU84/w5IqxkWxJERyGZgDu8iT6Olt+27rdx2w33/Zz7 UcEoGIVLxDaumEL76f7xmIyqERThgerRPXJ31uEesX9XyaU4nj2DmiXVrVbAW/XNdfjI wwu4wm9jk9BuRS7aN4cfkSFYgkwO7tJtenLzhza7kk28MLvJPJ4s6fwCw2PsfzYDZd/C L1Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mRdWVvxXfpR1HONcQ13vmHblCdP9E0sukJIqeJVaHk8=; b=XSrbTgAUD+N0V1SvOEGgtZSdGof3pOzHTzzgizx5Um4CqQnM/P2plQ/DGyUaBiFY5+ vWA8PWpwetXZCWJy5eddrhVy77/qXjsVyaxUyExbHLtCDYiRZfIyiiAfn1voIEEuI2UR 1WauVKkMJhdg/8Y0vQaNqb9T9DklezpoGfxRvmJM5SICSRgW2fKBEWn68fV8q/c5z+rk djlvdfWCzeOP4D61Amaqe38x98WP/tlDgyLtCg7MxLur6dFyHT7te30XLarnwgeSj48M hoUQXXjwuNFHzzcho6Uszw+U651ERLzs3mMPrILExW0jc0UVoJXx2P4luqggFoLpk71j XXQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si13108084edu.225.2021.03.23.03.08.16; Tue, 23 Mar 2021 03:08:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbhCWKEQ (ORCPT + 99 others); Tue, 23 Mar 2021 06:04:16 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:38454 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbhCWKEA (ORCPT ); Tue, 23 Mar 2021 06:04:00 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id C58E71C0B81; Tue, 23 Mar 2021 11:03:57 +0100 (CET) Date: Tue, 23 Mar 2021 11:03:56 +0100 From: Pavel Machek To: Linus Torvalds Cc: David Laight , Tom Tromey , Alexey Dobriyan , Luc Van Oostenryck , Linux Kernel Mailing List , Andrew Morton , Sparse Mailing-list Subject: Re: [PATCH 00/11] pragma once: treewide conversion Message-ID: <20210323100356.GA20449@amd> References: <877dmo10m3.fsf@tromey.com> <4835ec1d2ecc40b285596288a0df4f47@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > (a) the traditional include guard optimization HAS NO HIDDEN SEMANTIC > > > MEANING. It's a pure optimization that doesn't actually change > > > anything else. If you don't do the optimization, absolutely nothing > > > changes. > > > > And if the parser is well written the optimisation is probably > > irrelevant compared to the compile time. >=20 > That's actually surprisingly not even remotely true. >=20 > People always think that the optimization phases of a compiler are the > expensive ones. And yes, there are certain optimizations that can be > *really* expensive, and people just don't even do them because they > are _so_ expensive and are exponential in time. Well, linux kernel can be compiled in two _seconds_ if you take compiler optimized for fast parsing... and quick code generation. See "SUSE Labs Conference 2018 - Compiling the Linux kernel in a second (give or take)" on youtube. So yes, gcc's frontend may be slow, but that does not mean job can not be done quickly by suitable compiler. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmBZvQwACgkQMOfwapXb+vLR0ACfatm3DVUfTM8cgSE0Pni4q3eV rVUAn1gfH3rymd+a8lNl/5Rdelsy0u78 =qraN -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--