On 25/03/17 12:53, Tom Browder wrote:
> On Fri, Mar 24, 2017 at 10:36 PM, Timo Paulssen <t...@wakelift.de> wrote:
>> I seem to recall you asked about performance recently
>>
>> the regex engine has a significant overhead.
> ...
>
> Isn't that somewhat mitigated by defining regex or token constants for reuse?
>
> -Tom

The overhead is from starting up and finishing a regex match. Creating
the Match object is quite expensive, for example. all regexes are
compiled into code objects, of course.

Reply via email to