From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Sun, 05 Dec 2021 22:02:53 +0200 Message-ID: <83fsr63jma.fsf@gnu.org> References: <83wnkm94oq.fsf@gnu.org> <87y251vdeh.fsf@gnus.org> <87lf11tlzf.fsf@gnus.org> <87r1atrsp9.fsf@gnus.org> <8735n85fa5.fsf@gnus.org> <87r1arskmq.fsf@gnus.org> <87r1arsjpu.fsf@yahoo.com> <87ilw3sjlr.fsf@gnus.org> <87r1ar4mi2.fsf@gmail.com> <874k7nw32n.fsf@gnus.jao.io> <87mtlfasg4.fsf@telefonica.net> <87y24yrgas.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 21:04:00 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtxjs-0004ZS-2t for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 21:04:00 +0100 Original-Received: from localhost ([::1]:59222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtxjq-00072n-FC for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 15:03:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtxit-0006BL-3g for emacs-devel@gnu.org; Sun, 05 Dec 2021 15:02:59 -0500 Original-Received: from [2001:470:142:3::e] (port=48278 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtxis-0005Rc-EZ; Sun, 05 Dec 2021 15:02:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=87DnI7UxCVSf7mSy2LbmrIE8EBFYwgZgefFfPhkAA4U=; b=KVZml+LaFfzf 3EG1YaCZoFNIyjlpmwfs2SxAoy3Im0VjbUJJg99/GnRUg77FGvJPxMU/SPYTG8JxSx34NY5JhG/OW 2iBiKgVh3KoAljfMiTBMsNB3PQuhf4qn0Zz13XwF76yvpoLL8QJchif8jpvSg1BRDxba4qY3p5Gm8 dg8WjSu9pS4o0w6mI7JCn/Hkr8vWTr9IFT35+DGSGuO4l34hW8/R2XlzJChUIGDh0Q6cG9dUaLv8S iZGJgLxxuBLuJUEwkEVmfTy5XbWZFTpU+b29WnP8J0S0n8VTsO/wh/9pOhsFERZnzgDEko+47E7Ld VeuK/taSr3V5lcUmH7vBHg==; Original-Received: from [87.69.77.57] (port=3146 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtxis-0004X6-6y; Sun, 05 Dec 2021 15:02:58 -0500 In-Reply-To: <87y24yrgas.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 05 Dec 2021 20:40:43 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281020 Archived-At: > From: Lars Ingebrigtsen > Date: Sun, 05 Dec 2021 20:40:43 +0100 > Cc: emacs-devel@gnu.org > > But still, even when that's done correctly, the nativecomp speedups are > pretty elusive in real world code. For instance, I'd expect shr > rendering to be significantly speeded up when doing table-based layouts, > because it's doing a lot of... stuff. But: > > (benchmark-run 10 (eww-open-file "/tmp/foo.html")) > > stubbornly takes the same amount of time with or without nativecomp, > and it's the same way with every real bit of code I've tested (like byte > compilation, which I'd also expect to be faster with nativecomp). Profile it. In my testing, 2/3 of the time is taken by GC, and nativecomp cannot possibly speed up that.