GNU bug report logs - #851
Takes several minutes to load 512k C header

Previous Next

Package: emacs;

Reported by: michael.meeks <at> novell.com

Date: Mon, 1 Sep 2008 11:25:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 851 in the body.
You can then email your comments to 851 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#851; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to michael.meeks <at> novell.com:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Michael Meeks <michael.meeks <at> novell.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Takes several minutes to load 512k C header
Date: Mon, 01 Sep 2008 12:16:14 +0100
[Message part 1 (text/plain, inline)]
	I try to load the attached file (when un-compressed). It's 512k of
text, but I have a fast multi-GHz machine with GBs of spare RAM etc. and
I can load 20+Mb .txt files in emacs just fine normally.

	Loading this generates several minutes of non-responsiveness.

	HTH,

		Michael.

In GNU Emacs 22.2.1 (i586-suse-linux-gnu, GTK+ Version 2.12.9)
 of 2008-06-07 on nepomuk
Windowing system distributor `The X.Org Foundation', version
11.0.10400090
configured using `configure  '--with-gcc' '--with-pop'
'--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-leim'
'--with-xim' '--with-system-malloc' '--prefix=/usr'
'--infodir=/usr/share/info' '--mandir=/usr/share/man'
'--localstatedir=/var' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-xpm'
'--with-jpeg' '--with-tiff' '--with-gif' '--with-png'
'--with-x-toolkit=gtk' '--x-includes=/usr/include'
'--x-libraries=/usr/lib:/usr/share/X11' '--build=i586-suse-linux-gnu'
'build_alias=i586-suse-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -march=i586
-mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -g -D_GNU_SOURCE -std=gnu89 -pipe -fno-strict-aliasing
-Wno-pointer-sign -Wno-unused-variable -Wno-unused-label
-Wno-unprototyped-calls -DSYSTEM_PURESIZE_EXTRA=55000
-DSITELOAD_PURESIZE_EXTRA=10000 ' 'LDFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  show-paren-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
C-x C-f C-a C-k / t m p <tab> h a n g . h <tab> <return> 
<return> <next> <next> <next> <next> <next> <C-end> 
C-x k <return> C-x C-f <up> <return> <down-mouse-1> 
<drag-mouse-1> q <up> q <down-mouse-1> <mouse-1> M-x 
e m a c s - r e p <tab> <backspace> <backspace> M-b 
M-b C-k r e m <backspace> p o r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Note: file is write protected
Loading cc-mode...
Loading advice...done
Loading cc-mode...done
Buffer is read-only: #<buffer hang.h>
Mark set
Note: file is write protected
Buffer is read-only: #<buffer hang.h> [2 times]
Loading emacsbug...done

-- 
 michael.meeks <at> novell.com  <><, Pseudo Engineer, itinerant idiot

[hang.h.gz (application/x-gzip, attachment)]

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#851; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 851 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: michael.meeks <at> novell.com, 851 <at> debbugs.gnu.org
Subject: Re: bug#851: Takes several minutes to load 512k C header
Date: Mon, 01 Sep 2008 19:30:03 +0200
> 	I try to load the attached file (when un-compressed). It's 512k of
> text, but I have a fast multi-GHz machine with GBs of spare RAM etc. and
> I can load 20+Mb .txt files in emacs just fine normally.
>
> 	Loading this generates several minutes of non-responsiveness.
>
> 	HTH,
>
> 		Michael.
>
> In GNU Emacs 22.2.1 (i586-suse-linux-gnu, GTK+ Version 2.12.9)
>  of 2008-06-07 on nepomuk

It loads in a couple of seconds here.  Alan has tried to fix the
handling of header files as discussed in this thread

http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01613.html

on 2008-03-07.  Can you check whether that fix made it into your Emacs?

martin





Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to michael.meeks <at> novell.com:
bug acknowledged by developer. Full text and rfc822 format available.

Message #15 received at 851-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Michael Meeks <michael.meeks <at> novell.com>,
        851-done <at> debbugs.gnu.org
Subject: Re: Takes several minutes to load 512k C header
Date: Mon, 01 Sep 2008 14:39:54 -0400
> It loads in a couple of seconds here.  Alan has tried to fix the
> handling of header files as discussed in this thread
>
> http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01613.html
>
> on 2008-03-07.  Can you check whether that fix made it into your
> Emacs?

Alan's fix isn't on the Emacs 22 branch, but it's too late to check it
in for Emacs 22.3, I think.

Michael: in the meantime, you could try to apply the patch to your
personal version of cc-engine.el (I believe it applies cleanly):

http://cvs.savannah.gnu.org/viewvc/emacs/lisp/progmodes/cc-engine.el?root=emacs&r1=1.56.2.10&r2=1.56.2.11&diff_format=c




Message #16 received at 851-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Michael Meeks <michael.meeks <at> novell.com>,
        851-done <at> debbugs.gnu.org
Subject: Re: Takes several minutes to load 512k C header
Date: Mon, 01 Sep 2008 23:09:29 +0200
> Alan's fix isn't on the Emacs 22 branch, but it's too late to check it
> in for Emacs 22.3, I think.

Ain't that too bad.  The fix isn't strikingly good but the behavior can
be awful.  And this time it apparently stroke us with font-lock.

> Michael: in the meantime, you could try to apply the patch to your
> personal version of cc-engine.el (I believe it applies cleanly):
>
> http://cvs.savannah.gnu.org/viewvc/emacs/lisp/progmodes/cc-engine.el?root=emacs&r1=1.56.2.10&r2=1.56.2.11&diff_format=c

Michael, if you have any problems with this complain immediately -
finding the right order to compile the various cc-mode files is a
mystery.

martin




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Tue, 30 Sep 2008 14:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.