unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11657: 24.1.50; Byte compiler is a lot slower now, when run interpreted
@ 2012-06-09 11:30 Eli Zaretskii
  2012-06-09 20:07 ` Juanma Barranquero
  2012-06-10  1:24 ` Stefan Monnier
  0 siblings, 2 replies; 18+ messages in thread
From: Eli Zaretskii @ 2012-06-09 11:30 UTC (permalink / raw)
  To: 11657

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 - <M-backspace> r e p o r t - e m <tab> 
<return>

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)





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-06-25  1:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-09 11:30 bug#11657: 24.1.50; Byte compiler is a lot slower now, when run interpreted Eli Zaretskii
2012-06-09 20:07 ` Juanma Barranquero
2012-06-09 23:36   ` Christoph Scholtes
2012-06-10  1:24 ` Stefan Monnier
2012-06-10  3:00   ` Eli Zaretskii
2012-06-10 14:48     ` Stefan Monnier
2012-06-11  1:10       ` Stefan Monnier
2012-06-11 16:53         ` Eli Zaretskii
2012-06-14 19:09           ` Stefan Monnier
2012-06-14 23:56             ` Juanma Barranquero
2012-06-15  1:41               ` Stefan Monnier
2012-06-15  9:27               ` Eli Zaretskii
2012-06-15 19:43                 ` Juanma Barranquero
2012-06-15 20:04                   ` Eli Zaretskii
2012-06-20 16:33             ` Stefan Monnier
2012-06-20 23:02               ` Juanma Barranquero
2012-06-22 18:33               ` Eli Zaretskii
2012-06-25  1:02                 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).