[Webkit-unassigned] [Bug 180537] New: YARR: Coalesce constructed character classes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 7 11:34:40 PST 2017


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

            Bug ID: 180537
           Summary: YARR: Coalesce constructed character classes
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msaboff at apple.com

Currently when we construct a character class like [abcde], we end up with a check for each character instead of characters in the range of a..e.  It is also common for RegExp's to be written with something like [\s\S] when the programmer really wanted a . with the newly added 's', aka dotAll flag.  In that case we perform lots of individual character and range checks.

Instead we should coalesce characters and ranges when constructing a character class to reduce the resulting checks.

-- 
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/20171207/0b3e2e38/attachment.html>


More information about the webkit-unassigned mailing list