emacs-devel
[Top][All Lists]
Advanced

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

Documentation on debugging regexp performance


From: Clément Pit--Claudel
Subject: Documentation on debugging regexp performance
Date: Thu, 21 Jan 2016 00:29:58 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Hi emacs-devel,

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. 

Are there good resources on how to rewrite regexps to make them Emacs-friendly? 
I didn't find such documentation, and I'm puzzled as to what could make the 
regexp above hard to re-search-forward for.

Cheers,
Clément.

Attachment: large-goal
Description: Text document

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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