[Webkit-unassigned] [Bug 271735] URL.searchParams eagerly re-parses the URL, which can be slow when making many updates in a row

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 27 17:44:21 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=271735

Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|URL.searchParams            |URL.searchParams eagerly
                   |performance issue           |re-parses the URL, which
                   |                            |can be slow when making
                   |                            |many updates in a row
                 CC|                            |ap at webkit.org

--- Comment #2 from Alexey Proskuryakov <ap at webkit.org> ---
Looks like those are in URLSearchParams.cpp - you can see updateURL() calls which would need to turn into lazy updates.

That said, while lazy update will obviously make this operation faster, it would make all read operations slower due to adding a branch. So performance testing would need to be done to make sure that such an optimization doesn't degrade user experience in regular browsing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240328/29327e69/attachment.htm>


More information about the webkit-unassigned mailing list