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: Native compilation on as default? Date: Thu, 26 Oct 2023 10:20:17 +0300 Message-ID: <83o7glhmtq.fsf@gnu.org> References: <83legs281v.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25282"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: brickviking Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 26 09:21:12 2023 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 1qvug3-0006Mh-Er for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Oct 2023 09:21:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvuf8-0004Ry-O3; Thu, 26 Oct 2023 03:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvuf7-0004RW-Cm for emacs-devel@gnu.org; Thu, 26 Oct 2023 03:20:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvuf7-0006U1-1s; Thu, 26 Oct 2023 03:20:13 -0400 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=ISSMMhy0U2+Gyu7A02o/mEeAzHthwl6T1STFaBwuh8U=; b=naGwP3Yqr6JS cNbMB8VmcjESyHTBbjefBsbonsvFbAtFhvsdKJmQDc1HuhZFsYko0OuZORdztZtjHuv9VLg0aPCz4 9C0EaCB0lEVjU3tt0MRjXIVs4flCh6jYh8Prp7PE/pz+X1ZDYZ4MYKbxlkTUIn/jjhMZTjQGV/YNJ JHkHb7YE+PIa+/dP23YiNqQhf5qNoQu4+FLTGIVhvEW99voz0EC27wWXlWQPf8BkJH7Y3CbrsH25j SQMDfAFW7blyZdAUNpHkTnH9jL7ZCAzkI0U7Y1RghNkdTuN7melKkgmKCBeGj0vqdFDltIJXJN0Uz 7xL3i8CnYfUf3PleRhRO1A==; In-Reply-To: (message from brickviking on Thu, 26 Oct 2023 16:55:08 +1300) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311889 Archived-At: > From: brickviking > Date: Thu, 26 Oct 2023 16:55:08 +1300 > > To add to what RMS has stated, I'm on an older machine with not a lot of room left on the primary > partition. I understand that's on me, but I wanted to add my notes about my local experience. > > I compiled Emacs as a test with AOT turned on, and found that it started creating *.eln files. Lots of > them. I recompile Emacs on a fairly regular basis, and after one compile/install of Emacs, I noted at > least an extra 40Mb after about an hour's running with erc, org-mode and ef-themes (amongst > others). On my older 2008-era machine that's starting to really show its age, the extra .eln files were > not really worth it for me. I wish I had better news, I've been wanting a sped-up emacs for a little while > now. To be fair, I _thought_ I saw a speed increase in what amounts to display code, but I'm not a > programmer, mainly a user. As with any optional Emacs feature, even those which are ON by default, disabling them is easy if for some reason you don't want it. In this case, in addition to --without-native-compilation, you can simply make sure libgccjit is not available on your system, and then native compilation will be disabled in your build. So I see no problems here that would unnecessarily inconvenience users of old/slow systems. > Is there a facility to purge out-of-date versions of the .eln files for a version that is installed later, and > is that facility easy enough to look for via C-h f? This might make native compilation easier to > swallow. See the command native-compile-prune-cache, which is new in Emacs 29. For *.eln files that are installed under /usr/local, you will need to uninstall the old Emacs version or manually delete its versioned subdirectories.