all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: davemilter <davemilter@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: render of big header is too slow
Date: Sun, 30 Nov 2008 13:14:05 -0800 (PST)	[thread overview]
Message-ID: <6619c6a8-bfb8-4e00-a2e0-9266da265829@x14g2000yqk.googlegroups.com> (raw)

Hi,

at now I often edit big enough header files with C code.
font-lock-mode is on.
And when I start scrolling, emacs eats 100% of cpu,
and do something, I suppose syntax highlight (may be there is internal
emacs `top'
to find out what it do?).
Sometimes even single "page up" or "page down" command,
cause 1 minute of 100% CPU eating.

For example, currently openned file is about 368K, 4988 lines.

I play with jit-lock-mode, in most cases for such kind of files it
helps,
but it looks like hack, I need to find suitable timeouts, and they
different depend on machine load.

And I wonder may be I do something wrong,
because of it is strange that on 1913.173 Mhz machine with
1Gb of memory rendering of 4988 lines of code cause such
problems.

PS
I tried GNU Emacs 22.3.1
and GNU Emacs 23.0.60.1 (from cvs)

PS PS
I tried another editors like kate and gvim,
they work as expected take not more then 1-2 seconds to render such
kind of file, and then scrolling works very fast.


                 reply	other threads:[~2008-11-30 21:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=6619c6a8-bfb8-4e00-a2e0-9266da265829@x14g2000yqk.googlegroups.com \
    --to=davemilter@gmail.com \
    --cc=help-gnu-emacs@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.