[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Pattern matching: good practices ?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 27 Dec 2009 12:09:48 -0200
> Recently I've been bitten a few times by very bad performing patterns
> using string.match(), which in some cases took several seconds to run on
> an input string of several tens of kilobytes.
>
> [...]
>
> I found the 'Patterns Tutorial' in the wiki, but this talks mainly about
> how to write patterns, but not about what options to choose when there
> are multiple options to create a pattern.
PiL has a few words about this topic: http://www.lua.org/pil/20.4.html
-- Roberto