Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 52256fbd159a84cdf834a19b4f4c7f8a6946c777
https://github.com/WebKit/WebKit/commit/52256fbd159a84cdf834a19b4f4c7f8a6946c777
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-03 (Fri, 03 Jul 2026)
Changed paths:
M Source/WebCore/svg/SVGURIReference.cpp
Log Message:
-----------
Optimize SVGURIReference::fragmentIdentifierFromIRIString to avoid redundant
URL parsing and string allocations
https://bugs.webkit.org/show_bug.cgi?id=318531
Reviewed by Nikolas Zimmermann.
Improve performance in SVGURIReference::fragmentIdentifierFromIRIString by using
Document::encodingParseURL to resolve the URL in a single pass. This avoids
manual
slicing of URLs and multiple URL object constructions, reducing heap allocations
and duplicate parsing.
* Source/WebCore/svg/SVGURIReference.cpp:
(WebCore::SVGURIReference::fragmentIdentifierFromIRIString):
Canonical link: https://commits.webkit.org/316480@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications