all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
To: emacs-devel@gnu.org
Subject: Re: narrow-to-defun and mark-defun now work properly for CC Mode.
Date: Wed, 11 Apr 2007 17:53:56 -0400 (EDT)	[thread overview]
Message-ID: <m1HbklI-0027M2C@rattlesnake.com> (raw)
In-Reply-To: <20070411214155.GB1818@muc.de> (message from Alan Mackenzie on 11 Apr 2007 22:22:20 +0200)

Both before and after fontification
with what amounts to  emacs -Q -D  , but more on the command line,
both     C-s method
and      M->
are fast, very fast.

Fontifying the emacs/src/xdisp.c buffer took nearly 5 minutes.

An IBM A21p laptop running a Pentium III (Coppermine) at 697.429 MHz,
using a Debian testing distribution of GNU/Linux, kernel 2.4.25,
updated this morning at around 11:45 UTC, along with

Today's GNU Emacs CVS snapshot, Wed, 2007 Apr 11  11:52 UTC
GNU Emacs 22.0.97.8 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
started with

    /usr/local/src/emacs/src/emacs -Q -D \
     --eval '(setq-default mode-line-buffer-identification
                           (quote (#("%14b" 0 4 (face (:weight normal))))))' \
     -fn "-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1" \
     --visit=/usr/local/bin/emacs-test                               \
     --eval "(setq frame-title-format '(\"Emacs test:  %b\"))"       \
     --eval '(set-frame-name "Emacs test")'                          \
     --eval '(switch-to-buffer "*scratch*")'                         \
     --eval '(emacs-version t)'



I found the   emacs/src/xdisp.c  buffer and in it, I did:


    M-:
        (progn (load "elp")
               (elp-instrument-function 'font-lock-fontify-buffer)
               (elp-reset-all))
    RET

    M-x font-lock-fontify-buffer RET

    M-:
        (elp-results)
    RET


*ELP Profiling Results*  buffer 


    Function Name             Call Count  Elapsed Time  Average Time
    ========================  ==========  ============  ============
    font-lock-fontify-buffer  1           297.907887    297.907887


-- 
    Robert J. Chassell                          GnuPG Key ID: 004B4AC8
    bob@rattlesnake.com                         bob@gnu.org
    http://www.rattlesnake.com                  http://www.teak.cc

  reply	other threads:[~2007-04-11 21:53 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-09 11:18 narrow-to-defun and mark-defun now work properly for CC Mode Alan Mackenzie
2007-04-09 17:00 ` Eric Hanchrow
2007-04-11  0:29 ` Nick Roberts
2007-04-11  5:27   ` martin rudalics
2007-04-11 17:26     ` Chong Yidong
2007-04-11 17:53       ` Chong Yidong
2007-04-11 18:53         ` Eli Zaretskii
2007-04-11 19:49         ` Alan Mackenzie
2007-04-11 20:22           ` Alan Mackenzie
2007-04-11 21:53             ` Robert J. Chassell [this message]
2007-04-11 20:51           ` Chong Yidong
2007-04-11 21:02             ` Alan Mackenzie
2007-04-11 22:19               ` Nick Roberts
2007-04-12 18:45                 ` Alan Mackenzie
2007-04-12 22:04                   ` Nick Roberts
2007-04-12 17:43               ` Richard Matthew Stallman
2007-04-12 19:08               ` Stefan Monnier
2007-04-11 21:21             ` Kim F. Storm
2007-04-12  3:18             ` Eli Zaretskii
2007-04-12  3:51               ` Nick Roberts
2007-04-12 19:08                 ` Eli Zaretskii
2007-04-11 19:51         ` Kim F. Storm
2007-04-11 21:27         ` Edward O'Connor
2007-04-11 19:46   ` Richard Matthew Stallman
2007-04-11 18:04 ` Chong Yidong
2007-04-11 23:04   ` Richard Matthew 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=m1HbklI-0027M2C@rattlesnake.com \
    --to=bob@rattlesnake.com \
    --cc=emacs-devel@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.