Optimize URLParser performance
Created attachment 288482 [details] Patch
Created attachment 288509 [details] Patch
Comment on attachment 288509 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=288509&action=review > Source/WebCore/platform/URLParser.cpp:137 > + const uint16_t ftpPort = 21; > + const uint16_t gopherPort = 70; > + const uint16_t httpPort = 80; > + const uint16_t httpsPort = 433; > + const uint16_t wsPort = 80; > + const uint16_t wssPort = 433; static const > Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp:489 > + checkURL("hTtP://host:80", {"http", "", "", "host", 0, "/", "", "", "http://host/"}); If this test is worth adding, then similar mixed case tests are worth adding for *all* known schemes.
http://trac.webkit.org/changeset/205812