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 10:20:24 +0200 Message-ID: <83o85v4g53.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8919"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 09:27:37 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 1mtmrx-00029T-K9 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 09:27:37 +0100 Original-Received: from localhost ([::1]:33948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtmrv-0003bw-S0 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 03:27:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtml5-0001FM-O0 for emacs-devel@gnu.org; Sun, 05 Dec 2021 03:20:31 -0500 Original-Received: from [2001:470:142:3::e] (port=33364 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 1mtml5-00040y-GC; Sun, 05 Dec 2021 03:20:31 -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=2zkYg/y6f8YmdiPEweawDQ6Xqs3zqVjsE8Wak6ON8Ps=; b=ctK3WIdhyoBj OAsskKAcFai6s2aJyWi46udXQGORAd/qWOpQpWiuPYnu+8aMqfLz78MHxZSYDmo8idixEMPUVwFTA 8Ffr1Z6MRLcbuKCx1CYBftfDrbrSsx9PahfvhfINq6df8EqAmbZ8A8YoGpTolxgvA/6lxACtJtr7o PUYyYJdbqcSlDC7g3jGTjJHsQKfTPhWYJ0j5wPPQXdkVsAUjXU14NupDRVl2vV8+9br14zDLNToDv WIm62qFGQIC1RWEPUXKvk29WrtZFlRljnK0zytolowDLibNTAAX/KJFJgBX43TC1aXmfszullVQhl NRX31YHZM4s/nzXvNiJ9AQ==; Original-Received: from [87.69.77.57] (port=3031 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 1mtml4-0002Oo-Si; Sun, 05 Dec 2021 03:20:31 -0500 In-Reply-To: <87r1ar4mi2.fsf@gmail.com> (message from Tim Cross on Sun, 05 Dec 2021 16:54:02 +1100) 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:280968 Archived-At: > From: Tim Cross > Date: Sun, 05 Dec 2021 16:54:02 +1100 > > Does it actually give that much of a performance boost? IME, it's significantly faster, yes. When you start a new version for the first time, it takes a couple of minutes before it compiles all the Lisp files you have routinely loaded (my build is not a full AOT build, per the default, so only the preloaded Lisp files are natively compiled as part of the build), but after that the performance is tangibly better, and when it later needs to compile additional Lisp files when they are first loaded, that doesn't affect the UX in any significant way, AFAICT. > 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. I don't install, let alone update, packages, so my experience doesn't include that. Caveat emptor.