From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Skipping unexec via a big .elc file Date: Mon, 06 Feb 2017 10:39:12 -0500 Message-ID: References: <15CF14CC-C7DE-44BA-AC7D-F0BF1F160979@raeburn.org> <9463F91F-DB82-48E1-BE01-1E2BC8DA0766@raeburn.org> <831swxzbw8.fsf@gnu.org> <83y3z2wphb.fsf@gnu.org> <83tw9bb42m.fsf@gnu.org> <349ED8B9-C34B-495B-9FB5-E72CE6EFCA38@raeburn.org> <87inpni6xa.fsf@linux-m68k.org> <8360lmesso.fsf@gnu.org> <3B044D64-7C94-42D7-BE1B-7A9CA76C5A67@raeburn.org> <83k29xc49v.fsf@gnu.org> <2C5C5C6E-9D73-4613-948B-C15B93968717@raeburn.org> <83poiy8cnv.fsf@gnu.org> <83y3xk7i07.fsf@gnu.org> <7DB61BDC-41C5-41A5-BB01-B15F2B03A81E@raeburn.org> <491113AD-F03F-4E9D-8005-F4C430E60A16@raeburn.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486397246 26213 195.159.176.226 (6 Feb 2017 16:07:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 16:07:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 17:07:23 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1calp1-0006W3-I2 for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 17:07:19 +0100 Original-Received: from localhost ([::1]:49235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1calp7-0001Xi-0t for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 11:07:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1calO8-0003wz-Oe for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:39:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1calO5-0003Nx-Ki for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:39:32 -0500 Original-Received: from [195.159.176.226] (port=45130 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1calO5-0003NY-Es for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:39:29 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1calNt-0002jx-Ap for emacs-devel@gnu.org; Mon, 06 Feb 2017 16:39:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:96hdOIzQe8jDWbyTFbZ3onxQhlU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212038 Archived-At: > It appears that the .elc output can vary depending on whether other loaded > Lisp code was compiled or not. Indeed: the culprit is the defsubst implementation. Currently, if a function is byte-compiled, the optimizer inlines its byte-codes and when it's not yet byte-compiled, then it inlines the source code. We should probably change that so that when it finds that the defsubst function is not yet byte-compiled, it byte-compiles it and then inlines the resulting byte-codes. Stefan