From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Skipping unexec via a big .elc file Date: Mon, 26 Dec 2016 19:48:48 +0200 Message-ID: <83y3z2wphb.fsf@gnu.org> References: <871szqwu51.fsf@users.sourceforge.net> <831szqhbc2.fsf@gnu.org> <87d1itt79z.fsf_-_@users.sourceforge.net> <7baa18d4-2b09-caa8-005e-29008a383ad1@cs.ucla.edu> <83mvhwrgd5.fsf@gnu.org> <8539f38f-9a11-44c3-4de7-bb974c96206c@cs.ucla.edu> <8360ojpndr.fsf@gnu.org> <83shrnm0k1.fsf@gnu.org> <075B0922-F07A-4FBA-AE71-027E964A5ED4@raeburn.org> <54AAC13A-CF56-4393-A932-DC6CBBF51259@raeburn.org> <3CC6BB36-1794-4202-8243-132E0345B236@raeburn.org> <52BDCC33-546C-4F47-A230-00EBC813B038@raeburn.org> <15CF14CC-C7DE-44BA-AC7D-F0BF1F160979@raeburn.org> <9463F91F-DB82-48E1-BE01-1E2BC8DA0766@raeburn.org> <831swxzbw8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1482774598 28992 195.159.176.226 (26 Dec 2016 17:49:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Dec 2016 17:49:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: raeburn@raeburn.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 26 18:49:53 2016 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 1cLZP9-0006Pa-N2 for ged-emacs-devel@m.gmane.org; Mon, 26 Dec 2016 18:49:47 +0100 Original-Received: from localhost ([::1]:51188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLZPE-0002SD-Bn for ged-emacs-devel@m.gmane.org; Mon, 26 Dec 2016 12:49:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLZOa-0002S7-9l for emacs-devel@gnu.org; Mon, 26 Dec 2016 12:49:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLZOV-000451-Aa for emacs-devel@gnu.org; Mon, 26 Dec 2016 12:49:12 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLZOV-00044v-7I; Mon, 26 Dec 2016 12:49:07 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3511 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cLZOT-0007W3-Mu; Mon, 26 Dec 2016 12:49:06 -0500 In-reply-to: <831swxzbw8.fsf@gnu.org> (message from Eli Zaretskii on Sat, 24 Dec 2016 15:37:11 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:210822 Archived-At: > Date: Sat, 24 Dec 2016 15:37:11 +0200 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > I’m still hitting just under 0.2s for: > > > time ./temacs --batch --eval '(progn (message "hi") (kill-emacs))' > > > > on Linux/GNU/X11 (Intel Core i5-2320, 3GHz, gcc 4.9); my Mac (Intel Core 2 Duo, 2.8GHz) takes over half a second (including at least one GC invocation). > > For the record, my timing is 0.828s with an unoptimized build of the > branch, as opposed to 13.2s with an unoptimized build on master, and > 5.343s with an optimized (-Og) build of Emacs 25.1.90. The CPU is > Core i7-2600, 3.4GHz; the compiler used is GCC 5.3.0. With an optimized (-O2) build on the same system, the above command takes 0.190s on the average. Byte-compiling Lisp files in batch mode shows that loading dumped.elc takes about 0.150s, as that is the difference between byte-compiling with temacs and the dumped emacs. For example, compiling simple.el takes 0.656s with temacs and 0.515s with dumped emacs. IOW, the overhead is additive, as expected.