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-comp write path? Date: Sat, 12 Feb 2022 21:12:01 +0200 Message-ID: <83v8xjrjb2.fsf@gnu.org> References: <87fsoodx2i.fsf@wavexx.thregr.org> <831r08rn1o.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21507"; mail-complaints-to="usenet@ciao.gmane.io" Cc: wavexx@thregr.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 12 20:14:40 2022 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 1nIxqy-0005RU-DG for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Feb 2022 20:14:40 +0100 Original-Received: from localhost ([::1]:50040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIxqx-0002fj-FA for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Feb 2022 14:14:39 -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 1nIxoY-00018K-Bp for emacs-devel@gnu.org; Sat, 12 Feb 2022 14:12:10 -0500 Original-Received: from [2001:470:142:3::e] (port=47316 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 1nIxoX-0005go-1R; Sat, 12 Feb 2022 14:12:09 -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=INVwv2C1v62AMYdA/ckSmV53ZxA0K/D+gyiFQbct1fo=; b=rJ/AWh0CSObK vCZPFwD1UpgrGXVog4UEXzsBoG/LxvvOtW7UcgDATegGntn9DnXLPI4y/NkSmxsF72QHl1PJ7Vlnh OijgOpb7+UtRkuQwoIG81caVafqaOhJKbUiHHzHEPzTRJsUyV4rnlGjGva1c0l+jzb5C4guhfmFpE nzSWiNIlR3Bd8lsmYgiyTO1CYA9pHcUMqqX8VvMkO+HjvpDvTcnq5vOzSprax/mvVksbJAvrYSTX+ kI3jzWFsFlX1dherwhrPg9JrEueHR8AQ+ZAn5hzo2Ed384EiarHbaCyIK75tFbn4DYYOgk7FQXqHm nl0lEiglsQcPeLFrbZaSxQ==; Original-Received: from [87.69.77.57] (port=4822 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 1nIxoW-0007ev-2R; Sat, 12 Feb 2022 14:12:08 -0500 In-Reply-To: (message from Stefan Monnier on Sat, 12 Feb 2022 12:59:08 -0500) 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:286190 Archived-At: > From: Stefan Monnier > Cc: Yuri D'Elia , emacs-devel@gnu.org > Date: Sat, 12 Feb 2022 12:59:08 -0500 > > >> I'd like to move the directory inside the XDG_CACHE hierarchy > > IMO, this is a mistake: the eln-cache is supposed to be more > > persistent than XDG_CACHE, and even more than the entire XDG > > hierarchy. It isn't really a "cache" in the XDG sense. > > Really? I thought the main defining feature of "cache" is that any of > those files can be thrown away an the system will work as well (tho > potentially a bit less efficiently) and the files will/can be > transparently re-generated if/when needed. > > The files in eln-cache seem to fit the description. The *.eln files don't need to be updated as long as you don't modify the corresponding *.el files. This means that, for an Emacs built and installed using the default procedure, the eln-cache will quickly fill up with compiled *.el files from the Emacs distribution that you frequently use. If those *.eln files are removed, Emacs will recompile them upon next startup, which might take a few minutes during which Emacs will be more sluggish than usually (because JIT native compilation by default uses half of the system's execution units). If you don't care about this, maybe it's okay to move the *.eln files to the XDG cache. But you need to understand the affects of this. > Or is XDG's cache not expected to survive a login session? I think it can disappear when you log off. Which is also something to keep in mind: your Emacs will compile the same files time and again each login.