From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.emacs.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Sun, 05 Dec 2021 14:15:12 +0000 Message-ID: <874k7nw32n.fsf@gnus.jao.io> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26457"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:IWGHa905Ll8VgMI3y71DYyzcZd8= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 16:08:44 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 1mtt88-0006kA-9m for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 16:08:44 +0100 Original-Received: from localhost ([::1]:42314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtt86-00009C-Fs for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 10:08:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtt7c-0007wS-DA for emacs-devel@gnu.org; Sun, 05 Dec 2021 10:08:12 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:60272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtt7a-0000mH-Mo for emacs-devel@gnu.org; Sun, 05 Dec 2021 10:08:12 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mtt7Z-00061P-5q for emacs-devel@gnu.org; Sun, 05 Dec 2021 16:08:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:281001 Archived-At: On Sun, Dec 05 2021, Tim Cross wrote: > Lars Ingebrigtsen writes: > >> Po Lu writes: >> >>>> Most distributions will probably release Emacs 28.1 with native >>>> compilation switched on. >>> >>> Why is that so? Most distributions only build their Emacs packages with >>> the default options. >> >> Several distributions have signalled that they want to ship Emacs with >> native compilation switched on (and at least one said they're going to >> be doing a full ahead-of-time build, if I remember correctly) -- >> presumably because that'll give their users a faster Emacs. > > Does it actually give that much of a performance boost? It has been a > couple of months since I tried native compilation in Emacs 28, but when > I did, I noticed next to no performance improvement at all. In fact, all > I did notice was lots of warnings and significant delays whenever I > updated packages. FWIW, i've used native compilation in master builds on and off for a couple of months, on GNU/Linux (debian sid), and haven't noticed any speed difference either. Last time was this week. The warnings are gone, not sure if it's because i configured some flag back in the day or because it's now the default, and the compilation delays are not too bad; but, as i said, i don't notice any difference other than the fact that the RAM comsumption of emacs is about 80% higher for long sessions when i use native compilation (i use emacs for virtually everything, it's my X11 desktop environment, and have a moderate amount of packages installed (around 50, i think)). > I've actually never noticed any speed problems with Emacs. Where there > are delays, it is due to the synchronous nature of what I'm doing rather > than basic performance. That's also mostly my experience. The only times i have to wait a bit (some seconds) are for eww to render some pages (and that doesn't happen often), and those waiting times don't seem to change at all when i enable native compilation. I'd be curious to know where people are seeing speedups. Cheers, jao -- I have lived in this world just long enough to look carefully the second time into things that I am most certain of the first time. -Josh Billings, columnist and humorist (21 Apr 1818-1885)