From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Native compilation: the bird-eye view Date: Mon, 10 Aug 2020 08:20:06 -0400 Message-ID: References: <83o8qocd32.fsf@gnu.org> <83ftbzdewp.fsf@gnu.org> <83blmndbpo.fsf@gnu.org> <838shrdb1c.fsf@gnu.org> <837dxbd93b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26959"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , Paul Eggert , emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 10 14:21:28 2020 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 1k56nu-0006qA-9O for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Aug 2020 14:21:26 +0200 Original-Received: from localhost ([::1]:59946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k56nt-0008Lm-Az for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Aug 2020 08:21:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k56mm-0007VT-EX for emacs-devel@gnu.org; Mon, 10 Aug 2020 08:20:16 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:5058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k56mh-0008Vm-UR; Mon, 10 Aug 2020 08:20:15 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1E74044110D; Mon, 10 Aug 2020 08:20:10 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 745444410E5; Mon, 10 Aug 2020 08:20:08 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1597062008; bh=F0w92Hi2PrN1VQkf0v7EczXCh856i2cxnPnKwbyJVVE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Q1cKM2YdGB/IAPV4PV6xSmh/AdrxojrfhKi9mGFTmfc6+asv88JKcqjNYVBos1vQx xaEsJk3oMA0if5a6Mwq06xnlX/dK0OGf0m2NH/RjQNXhjCbEOS3fPggyFTxRnVQJNo VH8xVx+iCksr9ujH1SZwZCRW7UJjlnfXiqWQP0VLqvQabuX+/8Fd/A7XdsCsi9Jb3x B6Dp/mdXghETFUsegf4My39y6yxhSHDHoFaH3uyTKoNzww8dgNIjRMlDiyJK9BDKxk Cud7DpjRiaA4OPwXkhJDw0QdYz+3LbIFx0SHpGLndEsBuXQPjn+zspDMB5MEXAcBHL q0iYi30CSeRrQ== Original-Received: from milanesa (unknown [45.72.246.108]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1932A1207EB; Mon, 10 Aug 2020 08:20:08 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Mon, 10 Aug 2020 09:23:56 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/10 08:07:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:253584 Archived-At: > Inside we have the eln files: > > ~/emacs$ ls eln-cache/x86_64-pc-linux-gnu-f618cbdb0cd39c5f/ > 4Corner-6622083dd2e93eda9a23ab8fb261bfd716e557cd3f955484db09a43143948f77.eln > 5x5-cf035056577934b61cfe135fec6b6c67af96dd8378fa341ecd6a1b68ee789f48.eln > abbrev-e1c1055cee82bacc9771ef6694dd80578cd97e869a489b42ff5b74ca8e00cbb6.eln > abbrevlist-9cb12f8701f1f34beea0fbf333c35a3643bdec0691490b8fd70579ec26904723.eln > add-log-4a4d094c86ae3143226b9e64aab356b7ced423a8c9b72b2156f75117b4ae1a66.eln > ... Looks good. > I left the original name for comodity at the beginning and the hash > afterwards. We could enconde in this hash also triplet and > configuration to remove one directory layer but I thought is more handy > for the user to have the eln divided this way. Long file names are annoying, so removing that level of directory would make it worse in my book. > Anyway, these elns are the one produced during the build, so the one > that will be installed in a sys directory. As a consequence I've added > a second eln-cache directory for the compilations produced during normal > use placed like ~/.emacs.d/eln-cache (well the exact value is computed > using `user-emacs-directory'). Good. > This implies that during a load we check if the file exists first in the > eln user directory and then if necessary in the system one. Fine. We might want to introduce an `eln-load-path` for that. > Another question I have: do you think would be accettable at (first) > startup to create the eln user directory and populate it with sym links > for each eln file pointing to the eln in the system eln-cache directory? I don't like this idea (and symlinks are problematic under w32). > This way we could save one file look-up and simplify the code given we > would point always and only to the user directory. A loop around `eln-load-path` seems like a fairly small price to pay and the extra lookup is likely to be negligible compared to all the lookups we do to find the `.elc` file anyway. Stefan