URLParser: Add fast path for hosts containing no non-ASCII or percent characters
Created attachment 288826 [details] Patch
Comment on attachment 288826 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=288826&action=review > Source/WebCore/platform/URLParser.cpp:748 > + if (!isASCII(*c) || *c == '%') I suggest that we define a static inline helper function, say isPercentEncodedOrASCII(), that takes a character c and returns the result of evaluating "!isASCII(c) || c == '%'" instead of repeating the "!isASCII(*c) || *c == '%'" check throughout the code. > Source/WebCore/platform/URLParser.h:51 > + bool m_hostHasPercentOrNonASCII { false }; Maybe a better name for this variable would be m_hostHasPercentEncodedOrNonASCIICharacter?
https://trac.webkit.org/changeset/205922