emacs-devel
[Top][All Lists]
Advanced

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

Re: Documentation on debugging regexp performance


From: Wolfgang Jenkner
Subject: Re: Documentation on debugging regexp performance
Date: Thu, 21 Jan 2016 12:42:40 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (berkeley-unix)

On Thu, Jan 21 2016, Clément Pit--Claudel wrote:

> I'm running into a surprising regular expressions issue. I have attached a 
> file (~50k) in which (re-search-forward "   +[^:=]+ +:=?") seems to be 
> extremely slow. (I killed it after 30 seconds). Truncating the file to its 
> first 20 lines reduces the time for re-search-forward to about a second, 
> which is still extremely slow. 

Perhaps you meant

(re-search-forward "   +[^:=\n]+ +:=?")

Cf. (info "(elisp) Regexp Special"), in particular the section about
"complemented character alternative".



reply via email to

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