[Top][All Lists]

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

Re: web-mode.el and speed

From: Andreas Röhler
Subject: Re: web-mode.el and speed
Date: Wed, 09 Oct 2013 13:04:59 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Am 07.10.2013 22:21, schrieb Bois Francois-Xavier:
I think that a function that would not rely on regexp could improve
drastically the performance.
For seconds are needed to load the html5-spec page. And most of the time is
spent identifying tags. So any micro optimization can have a huge impact.

(I have previously won 20% in perfomance when I modified the tag attributes
parser function to use chars instead of strings. I would have never thought
that the gain would be so large)

On Mon, Oct 7, 2013 at 10:05 PM, Eli Zaretskii <address@hidden> wrote:

From: Bois Francois-Xavier <address@hidden>
Date: Mon, 7 Oct 2013 21:29:42 +0200

I think that using a search-chars-forward (native) function could improve
the performance
(search-chars-foward '(?\< ?\>))

What's wrong with skip-chars-forward?

As it was said: skip-chars-forward

there is still the string/comment issue, where it probably shouldn't match

(while (and (< 0 (abs (skip-chars-forward CHARS)))(nth 8 (syntax-ppss))))

reply via email to

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