>>>> "Stef" == Stef Epardaud
<stef(a)lunatech.com> writes:
Stef> On Fri, Feb 08, 2002 at 02:34:11AM +0100, Hrvoje Niksic
Stef> wrote:
> It's very important that you provide the file, preferrably
> along with a "how-to-repeat" procedure that begins with `xemacs
> -vanilla'.
Yep, I get problems indenting, and -vanilla doesn't make things any
faster. Turning off font-lock speeds things up dramatically (about
70%), but it still takes a lo-o-ong time.
Looks like we have something to work with:
xemacs -vanilla
M-: (setq auto-mode-alist nil) RET
C-x C-f TraverseSchema.java
M-x java-mode RET
M-g 8941 RET
C-s m a j o r , RET
C-o C-f
and profiling the TAB keystroke gives:
Function Name Ticks %/Total Call Count
==================== ===== ======= ==========
scan-lists 1589 94.247 307
scan-sexps 49 2.906 305
re-search-backward 45 2.669 2
c-indent-command 1 0.059 1
c-parse-state 1 0.059 1
c-guess-basic-syntax 1 0.059 1
-----------------------------------------------------
Total 1686 100.000
about 7 secs subjective time. scan-lists and scan-sexps are both
implemented by the same C function, scan_lists. I wonder why the big
difference in ticks?
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Don't ask how you can "do" free software business;
ask what your business can "do for" free software.