[pcre-dev] [Bug 1348] very slow execution of some non-matchi…

Góra strony
Delete this message
Autor: Miklos Tirpak
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 1348] very slow execution of some non-matching patterns
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1348




--- Comment #3 from Miklos Tirpak <miklos@???> 2013-04-18 09:44:19 ---
Thank you very much for the quick help!

Yes, I can use possessive quantifiers, and they speed up the match a
lot, or better to say, the non-match.

I will also lower the match and recursion limits to protect the system
because I do not know in advance what kind of expressions the user will
define.

Thanks,
Miklos

On 04/17/2013 09:29 PM, Zoltan Herczeg wrote:
> ------- You are receiving this mail because: -------
> You reported the bug.
>
> http://bugs.exim.org/show_bug.cgi?id=1348
>
> Zoltan Herczeg <hzmester@???> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |hzmester@???

>
>
>
>
> --- Comment #2 from Zoltan Herczeg <hzmester@???> 2013-04-17 20:29:43 ---
> Can't you use possessive quantifiers here?
>
> [0-9a-fA-F#\*] intersect [\-\.\(\)] seems empty.
>
> ([0-9a-fA-F#\*]+[\-\.\(\)]?)* is the same as ([0-9a-fA-F#\*]++[\-\.\(\)])*
>
>



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email