You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a request to follow along whatwg/urlpattern#166 and start drafting an experimental implementation of URLPatternList.
The topic of an optimized URLPatternList surfaced again, triggered by URLPattern performance issues at #19861 recently observed in the wild.
As a real world usecase, it was found out that Fresh currently performs a series of URLPattern.exec(url) on every request (see denoland/fresh#1931 for more details).
Each time, the url argument is the same constant string which has to go through a set of URL patterns to match against, with overall performance costs which are linear in the cardinality of the set of URL patterns.
It looks like this is the exact case for optimization that URLPatternList is aiming at.
For reference, there were these previous attempts to start wiring this in Deno in the past:
This is a request to follow along whatwg/urlpattern#166 and start drafting an experimental implementation of
URLPatternList
.The topic of an optimized
URLPatternList
surfaced again, triggered byURLPattern
performance issues at #19861 recently observed in the wild.As a real world usecase, it was found out that Fresh currently performs a series of
URLPattern.exec(url)
on every request (see denoland/fresh#1931 for more details).Each time, the
url
argument is the same constant string which has to go through a set of URL patterns to match against, with overall performance costs which are linear in the cardinality of the set of URL patterns.It looks like this is the exact case for optimization that
URLPatternList
is aiming at.For reference, there were these previous attempts to start wiring this in Deno in the past:
URLPatternList
constructor #14500The text was updated successfully, but these errors were encountered: