[Webkit-unassigned] [Bug 119191] Regular expressions with ".?" expressions at the start and the end match the entire string

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 2 01:32:02 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=119191

--- Comment #3 from Sukolsak Sakshuwong <sukolsak at gmail.com> ---
The benchmark results are at https://gist.github.com/sukolsak/da11c94998776a4dfb3340f12f7b7688. The patch doesn't seem to cause a significant slowdown. I can think of a way to optimize these cases (/.?abc.*/, /.*abc.?/, /.{0,4}abc.*/, etc), which involves storing the quantifiers of the leading and trailing dots in the DotStarEnclosure. But I'm not sure if we should do it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180702/fd3dd055/attachment.html>


More information about the webkit-unassigned mailing list