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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Chong Yidong <cyd <at> stupidchicken.com>
Subject: bug#851: marked as done (Takes several minutes to load 512k C header)
[Message part 1 (text/plain, inline)]
Your message dated Mon, 01 Sep 2008 14:39:54 -0400
with message-id <87iqtfg16t.fsf <at> cyd.mit.edu>
and subject line Re: Takes several minutes to load 512k C header
has caused the Emacs bug report #851,
regarding Takes several minutes to load 512k C header
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don <at> donarmstrong.com
immediately.)


-- 
851: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=851
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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)]
[Message part 5 (message/rfc822, inline)]
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


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

Previous Next


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