https://bugzilla.novell.com/show_bug.cgi?id=464135

User [email protected] added comment
https://bugzilla.novell.com/show_bug.cgi?id=464135#c1





--- Comment #1 from Zoltan Varga <[email protected]>  2009-01-07 09:29:43 MST ---
This is caused by the following regex:
                        css = Regex.Replace(css,
@"(?<=color\s*:\s*.*)\#(?<hex>f00)\b", "red", RegexOptions.IgnoreCase);

I have no idea why this runs fast either on .net, or in the old interpreter.
It contains a 'positive lookbehind': (?<=color\s*:\s*.*) which ends with a .*,
so for each text position, it matches all substrings which ends at that
position,
ie. for ABCD, it tries:

A
B
AB
C
BC
ABC
D
CD
BCD
ABCD

the input file is 32k characters long.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to