From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11657: 24.1.50; Byte compiler is a lot slower now, when run interpreted Date: Sat, 09 Jun 2012 14:30:43 +0300 Message-ID: <83pq98u3h8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1339241512 19727 80.91.229.3 (9 Jun 2012 11:31:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2012 11:31:52 +0000 (UTC) To: 11657@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 13:31:51 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SdJtP-0004ww-Qc for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2012 13:31:44 +0200 Original-Received: from localhost ([::1]:39541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdJtP-0007tK-Lz for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2012 07:31:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdJtM-0007sl-Nl for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:31:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdJtK-0002gi-On for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:31:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdJtK-0002ge-LS for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:31:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SdJve-00025g-EG for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jun 2012 11:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11657 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13392415997983 (code B ref -1); Sat, 09 Jun 2012 11:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jun 2012 11:33:19 +0000 Original-Received: from localhost ([127.0.0.1]:35822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdJuv-00024h-Kr for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:33:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52901) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdJus-00024Z-GJ for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:33:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdJsV-0002U8-IV for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:30:49 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:45208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdJsV-0002Tw-Fk for submit@debbugs.gnu.org; Sat, 09 Jun 2012 07:30:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdJsT-0005ny-Dj for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:30:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdJsQ-0002TJ-BH for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:30:44 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdJsP-0002T8-IQ for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 07:30:42 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M5C00100LAOEX00@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 14:30:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M5C000OWLB3ZR80@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 14:30:39 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60804 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': The byte compiler seems to be a lot slower now, when run interpreted, compared with how it was a couple of weeks ago. With the current trunk: D:\gnu\bzr\emacs\trunk\lisp>timep ..\bin\bootstrap-emacs -batch -f batch-byte-compile org\org.el In toplevel form: org/org.el:4874:1:Warning: global/dynamic var `entry' lacks a prefix org/org.el:4876:1:Warning: global/dynamic var `date' lacks a prefix Wrote d:/gnu/bzr/emacs/trunk/lisp/org/org.elc real 00h00m16.343s user 00h00m16.234s sys 00h00m00.093s With trunk revision 108318: D:\gnu\bzr\emacs\test2\lisp>timep ..\bin\bootstrap-emacs -batch -f batch-byte-compile org\org.el In toplevel form: org/org.el:4873:1:Warning: global/dynamic var `entry' lacks a prefix org/org.el:4875:1:Warning: global/dynamic var `date' lacks a prefix Wrote d:/gnu/bzr/emacs/test2/lisp/org/org.elc real 00h00m02.125s user 00h00m02.046s sys 00h00m00.093s That's a 8-fold slowdown. Consequently, the bootstrap time on MS-Windows went up from 9 minutes to 33 minutes, which is gross. I see a similar slowdown on a x86_64 GNU/Linux machine. Here's a comparison with the latest emacs-24 branch: eliz@fencepost:~/bzr/emacs/trunk$ time ./src/bootstrap-emacs2 -batch -f batch-byte-compile lisp/org/org.el In toplevel form: lisp/org/org.el:4874:1:Warning: global/dynamic var `entry' lacks a prefix lisp/org/org.el:4876:1:Warning: global/dynamic var `date' lacks a prefix Wrote /home/e/eliz/bzr/emacs/trunk/lisp/org/org.elc real 0m47.939s user 0m45.850s sys 0m0.340s eliz@fencepost:~/bzr/emacs/emacs-24$ time ./src/bootstrap-emacs2 -batch -f batch-byte-compile lisp/org/org.el In toplevel form: org.el:4874:1:Warning: global/dynamic var `entry' lacks a prefix org.el:4876:1:Warning: global/dynamic var `date' lacks a prefix Wrote /home/e/eliz/bzr/emacs/emacs-24/lisp/org/org.elc real 0m5.883s user 0m5.620s sys 0m0.140s There's no perceptible change in speed of the byte compiler when it is run after being compiled. I get the same times, plus or minus the measurement noise, on both Windows and GNU/Linux. Is this slowdown expected? Can it be fixed? If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file d:/gnu/bzr/emacs/trunk/etc/DEBUG. In GNU Emacs 24.1.50.1 (i386-mingw-nt5.1.2600) of 2012-06-09 on HOME-C4E4A596F7 Bzr revision: 108534 cyd@gnu.org-20120609062646-n059z024eqc4npxy Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (3.4) --no-opt --enable-checking --cflags -Id:/usr/include/libxml2 -DGLYPH_DEBUG=1' Important settings: value of $EMACSDATA: D:/gnu/bzr/emacs/trunk/etc value of $EMACSDOC: D:/gnu/bzr/emacs/trunk/etc value of $EMACSLOADPATH: D:/gnu/bzr/emacs/trunk/lisp;D:/gnu/bzr/emacs/trunk/leim value of $EMACSPATH: D:/gnu/bzr/emacs/trunk/bin value of $LANG: ENU locale-coding-system: cp1255 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x e m a c s - r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)