emacs-devel
[Top][All Lists]
Advanced

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

Re: web-mode.el and speed


From: Eli Zaretskii
Subject: Re: web-mode.el and speed
Date: Tue, 08 Oct 2013 09:21:40 +0300

> From: Bois Francois-Xavier <address@hidden>
> Date: Mon, 7 Oct 2013 22:21:30 +0200
> Cc: address@hidden
> 
> 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)

As others have pointed out, you are trying to optimize without making
any measurements.  This methodology is known to lead to wrong
conclusions.  So you are well advised to try skip-chars-forward and
see if it is fast enough for your use case.



reply via email to

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