Darin is concerned for (size_t i = 0; i < string.length(); i++) my cause performance problem due to string.length().
Created attachment 118063 [details] Patch
Comment on attachment 118063 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118063&action=review > Source/WebCore/platform/KURL.cpp:267 > + const size_t length = string.length(); Please remove the const (or you could make src also const and build a bicycle shed).
Committed r102177: <http://trac.webkit.org/changeset/102177>