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: Clément Pit--Claudel
Subject: Re: Documentation on debugging regexp performance
Date: Thu, 21 Jan 2016 11:38:16 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 01/21/2016 06:42 AM, Wolfgang Jenkner wrote:
> 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]+ +:=?")

I don't think so; I do want newlines in there.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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