emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: narrow-to-defun and mark-defun now work properly for CC Mode.


From: Robert J. Chassell
Subject: Re: narrow-to-defun and mark-defun now work properly for CC Mode.
Date: Wed, 11 Apr 2007 17:53:56 -0400 (EDT)

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
    address@hidden                         address@hidden
    http://www.rattlesnake.com                  http://www.teak.cc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]