From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: native comp and user init files Date: Wed, 28 Apr 2021 13:56:20 -0700 Message-ID: <878s52yvpn.fsf@melete.silentflame.com> References: <87bl9yyyad.fsf@melete.silentflame.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="21073"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 28 22:57:38 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 1lbrFZ-0005OY-Pa for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Apr 2021 22:57:37 +0200 Original-Received: from localhost ([::1]:56416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbrFY-0004jd-TD for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Apr 2021 16:57:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbrEP-0004Hd-OW for emacs-devel@gnu.org; Wed, 28 Apr 2021 16:56:26 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:45709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbrEN-00018E-U9 for emacs-devel@gnu.org; Wed, 28 Apr 2021 16:56:25 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 27016F98; Wed, 28 Apr 2021 16:56:22 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 28 Apr 2021 16:56:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=L9ugz7DCuNLX6FX1bYAGBZXRwG 9wu5zygTwB8ElMnK0=; b=FN12FoXdHodLVlj4KlT3QzV7iQ97yQYpMmWq1M3Bqk SG4EHjx2Uwo2XBWn9+4Pz4CDHdk7+uS5/m6ovyAmqR8JYE/teozRX/2v5pBJ+9PU znAZG4SY2hrizQDwN8UdDTy9kgbBsT+L6JVvCDLTfGbuxFyHuQVJQ2ueXw+wOalW e0JpY4+0CQdiuaQbMCVAUxfPr3ir20x4PplBrq4T/3gh7PiTzhYqJ3uvAxXJ/JYY H4gy2O16tKivpcGCL7J5afCELA0IDYtrJmKyZlFUpcfmBro10izSRAeUSiD4u4BN V/oq7r4BUb5eJoWfWWpjMi7dvf5hPVPCCyxoByr6PXjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=L9ugz7 DCuNLX6FX1bYAGBZXRwG9wu5zygTwB8ElMnK0=; b=LisIOt/UNzlRAv1a3O2ebL mPLEAnO6BTn/ySsK5VW81hlabv0iDBhEmBU6B7UhdNIjR96zg/E1BjMBDVG+8J27 2nEk/euRCfycl2pL0q24oE6t7wUV7Z6HkFaEKXXyUP+BmHrIYfRTZv6i/ulFSRWS WccjOSKg4C/eZdVtQipgFpFIquhvO1Nc3Bwg1EIm08S+/Paq1p/zDTHcrUeD6a4t IJ1Y6vdTOYtVLQ1qE+2S9rWjTPv2VWqpWV0AnvzsJVP9UYDFpkvfiNv8fN+pRMb3 S+ENB/KmY2zLHcY5uX4kibX5v71YQH/mbFTLOe98uiGeUCMuUCk16hd16aD2a52Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvvddgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehttd ertddtredtnecuhfhrohhmpefuvggrnhcuhghhihhtthhonhcuoehsphifhhhithhtohhn sehsphifhhhithhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepiedvfeeufeekfe fhgeegleelfefhvdfhudelheehgedtleeitdffheeijeekgeeunecukfhppeduhedtrddu feehrdduieehrddvgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Original-Received: from hephaestus.arizona.edu (24-165-135-150.dynamic.arizona.edu [150.135.165.24]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Apr 2021 16:56:21 -0400 (EDT) Original-Received: by hephaestus.arizona.edu (Postfix, from userid 1000) id E42217EC840; Wed, 28 Apr 2021 13:56:20 -0700 (MST) In-Reply-To: Received-SPF: pass client-ip=64.147.123.21; envelope-from=spwhitton@spwhitton.name; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-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:268589 Archived-At: Hello Andrea, On Wed 28 Apr 2021 at 08:07PM GMT, Andrea Corallo wrote: > only file byte compiled and loaded are automatically native compiled. Ah. > That said unless you are doing any computation with code in your > .emacs I guess you'll not be able to apretiate any speed-up. There are quite a few function definitions in there, though I haven't measured how computationally intensive they actually are. One annoyance with arranging to have .el files in .emacs.d bytecompiled is you need some mechanism to ensure they get recompiled when your Emacs build changes, e.g. when you rebuild Emacs from git. But cached .eln files are already tied to the build of Emacs which generated them, right? So if I were to call `native-compile' on each .el file under ~/.emacs.d I wouldn't have to worry about removing the compiled output when I rebuild Emacs, since a different Emacs build would ignore the old .eln files? Does that sound plausible? -- Sean Whitton