unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: pogonyshev@gmx.net, teirllm@dms.auburn.edu, emacs-devel@gnu.org
Subject: Re: c-mode eats resources?
Date: Mon, 20 Feb 2006 21:33:18 +0200	[thread overview]
Message-ID: <873biekjy5.fsf@jurta.org> (raw)
In-Reply-To: <m3zmkmmoj2.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Mon, 20 Feb 2006 09:18:25 +0100")

>> (let ((start (float-time)))
>>   (font-lock-mode 1)
>>   (jit-lock-fontify-now (point-min) (point-max))
>>   (- (float-time) start))
>>
>> GNU Emacs 21.4 - 0.5 sec
>> CVS 2004-04    - 3.5 sec
>> CVS 2005-09    - 6.8 sec
>> CVS 2006-02    - 10.0 sec
>>
>> Given a few percents of CPU utilization, no wonder that stealth
>> fontification lasts several minutes.
>
> Does it help to increase the size of the regexp cache in search.c?
>
> #define REGEXP_CACHE_SIZE 20

I increased it to 2020 (this also required increasing NSTATICS twice to 5280),
and on the first test (on the current CVS) the result was 7.0 sec.

However, on subsequent evaluations the result started degrading:

1 - 7.0
2 - 7.0
3 - 8.4
4 - 9.5
5 - 9.5

After that, I reopened alloc.c, and again, on the first
evaluation the result was 7.1 sec, but on subsequent tests
the fontification time increased:

1 - 7.1
2 - 7.6
3 - 7.9
4 - 8.4
5 - 9.4

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2006-02-20 19:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-18 21:07 c-mode eats resources? Paul Pogonyshev
2006-02-18 22:40 ` Chong Yidong
2006-02-18 23:12   ` Paul Pogonyshev
2006-02-19 11:12     ` martin rudalics
2006-02-18 22:47 ` Lennart Borgman
2006-02-18 23:12 ` Luc Teirlinck
2006-02-19 17:18   ` Juri Linkov
2006-02-19 23:31     ` Andreas Schwab
2006-02-20  8:18     ` Kim F. Storm
2006-02-20 19:33       ` Juri Linkov [this message]
2006-02-18 23:17 ` Luc Teirlinck
2006-02-19  0:02 ` Luc Teirlinck
2006-02-19 11:54   ` Paul Pogonyshev
2006-02-19  0:05 ` Luc Teirlinck
2006-02-19  1:00 ` Luc Teirlinck
2006-02-19 15:17 ` Stefan Monnier
2006-02-19 22:47 ` Richard M. 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=873biekjy5.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=pogonyshev@gmx.net \
    --cc=teirllm@dms.auburn.edu \
    /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 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).