[webkit-changes] [WebKit/WebKit] 4d66b5: Optimize computeVisitedLinkHash()
Chris Dumez
noreply at github.com
Thu Sep 28 14:08:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4d66b5dc7da014352ef32d6052b52fc8532ed02a
https://github.com/WebKit/WebKit/commit/4d66b5dc7da014352ef32d6052b52fc8532ed02a
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-09-28 (Thu, 28 Sep 2023)
Changed paths:
M Source/WebCore/platform/SharedStringHash.cpp
Log Message:
-----------
Optimize computeVisitedLinkHash()
https://bugs.webkit.org/show_bug.cgi?id=262318
Reviewed by Ryosuke Niwa.
Optimize computeVisitedLinkHash():
- Avoid copying URL characters to a temporary buffer if the URL is
already absolute (contains "://"). Instead, compute the hash
straight from the URL characters.
- If the base URL is empty and the attribute value is 8 bit, use
the LChar code path instead of the UChar one.
* Source/WebCore/platform/SharedStringHash.cpp:
(WebCore::computeSharedStringHashInline):
(WebCore::computeVisitedLinkHash):
Canonical link: https://commits.webkit.org/268609@main
More information about the webkit-changes
mailing list