all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
Cc: Henrik Enberg <henrik.enberg@telia.com>,
	Chong Yidong <cyd@stupidchicken.com>, Sam Steingold <sds@gnu.org>,
	emacs-devel@gnu.org
Subject: Re: emacs hangs in jit-lock
Date: Thu, 30 Nov 2006 10:29:36 +0100	[thread overview]
Message-ID: <456EA480.4000206@gmx.at> (raw)
In-Reply-To: <jwv64cxy3aa.fsf-monnier+emacs@gnu.org>

 > I motion to change the default of jit-lock-stealth-time to nil.
 > A non-nil setting may be useful for some situations, but nil is safer and
 > more desirable for laptop use which is becoming the more prevalent
 > machines nowadays.

I doubt that setting `jit-lock-stealth-time' to nil would solve problems
reported as

 >>then load d-mode.el, associate d-mode with *.d, open all the *.d files
 >>and try to edit, say, lispbibl.d close to the end of file.

and

 > I see the same thing.  The header file below is a simple way to test
 > it.  Just open it and hit C-v, and things will get very slow.
 >
 > <http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.bin/mail/extern.h>
 >
 > Setting jit-lock-stealth-time to nil makes the problem go away.

These are not necessarily the "same things".  Suppose both problems were
caused by stealth fontification proper.  There would not be any need to
edit or scroll buffers to observe a slowdown.  However, the first author
tried to "edit the buffer close to the of file" and the second author
did open it and "hit C-v".  I can see two common points: (1) The major
mode involved was C mode and (2) there was some movement toward the end
of a buffer.

To check whether a problem is really caused by stealth fontification one
has to compare performance with stealth fontification turned off/on but
_without_ displaying the involved buffers in a window.  To detect
whether the slowdown is caused by parsing, it would suffice to open the
relative buffers, go to their ends, and stealthily fontify them without
displaying them.  Finally, to detect whether stealth fontification
simply "hangs" set `jit-lock-stealth-verbose' to t.

FWIW, I think that Alan's recent change to `beginning-of-defun-raw' is
the main culprit for the observed slowdown and it would be very easy to
spot it in the indicated way.  I don't use stealth fontification, hence
defaulting `jit-lock-stealth-time' to nil would just save me one line of
my .emacs.  On the other hand, it would mean throwing out the child with
the bathwater and not cure the real problem.

  parent reply	other threads:[~2006-11-30  9:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-28 17:23 emacs hangs in jit-lock Sam Steingold
2006-11-28 20:03 ` Chong Yidong
2006-11-28 20:13   ` Sam Steingold
2006-11-30  0:12     ` Henrik Enberg
2006-11-30  4:21       ` Stefan Monnier
2006-11-30  4:37         ` Chong Yidong
2006-11-30  9:29         ` martin rudalics [this message]
2006-11-30 14:41           ` Stefan Monnier
2006-11-30 18:16             ` martin rudalics
2006-11-30 18:46               ` Stefan Monnier
2006-11-30 22:49                 ` martin rudalics
2006-12-01 13:37                 ` Richard Stallman
2006-12-01 15:56                   ` martin rudalics
2006-12-02 17:56                     ` Richard Stallman
2006-12-02 17:56         ` Richard Stallman
2006-12-04  0:19           ` Chong Yidong
2006-12-04 14:21             ` Richard Stallman
2006-11-28 22:17 ` martin rudalics
2006-11-29  3:29 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=456EA480.4000206@gmx.at \
    --to=rudalics@gmx.at \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=henrik.enberg@telia.com \
    --cc=sds@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.