[Top][All Lists]

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

Re: State-machine based syntax highlighting

From: Robert Thorpe
Subject: Re: State-machine based syntax highlighting
Date: 8 Dec 2006 06:43:38 -0800
User-agent: G2/1.0

address@hidden wrote:
> Stefan Monnier wrote:
> > > Good to know. I thought font-lock was implemented in elisp and didn't
> > > bother to check.
> >
> > If you look at the code you'll probably think it's implemented in elisp.
> > But if you look at a profile, you'll probably see that it's spending most of
> > its time in either text-property manipulation functions, or
> > regexp-matching, or parse-partial-sexp, all of which are written in C.
> You wrote VIM is a little faster than Emacs.

No, I said that.

> Is it because of the time
> spent in the elisp part in emacs or the C part itself is implemented
> more efficiently in VIM?

I doubt it's the Elisp part since it is not normally a major component
of the runtime in font-locking.  Also, Vim has it's own simple language
for describing syntax highlighting.

> If it's the latter then the C implementations could be compared to see
> what VIM does better.

Yes.  There are many bits of Emacs where the performance could be

What is the problem you're seeing with performance anyway?

Generally to even see the font-locking occur I have to set up some
quite artificial situation, and the computers I use aren't that modern
or fast.

reply via email to

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