Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL pattern support #51

Open
pi0 opened this issue Apr 17, 2023 · 1 comment
Open

URL pattern support #51

pi0 opened this issue Apr 17, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Apr 17, 2023

Investigating URL Pattern API compatibility.

There are different goals for a fast route matcher (radix3) and a general purpose URL pattern matching standard. I still think we might somehow make a compatibility layer to convert the URL pattern to radix3. Additional regex checks (after fast initial phase) can be applied using the URLPattern class api.

@aquapi
Copy link

aquapi commented Dec 13, 2023

The only reasonable URL patterns are wildcards and URL parameters, which we can basically implement with a radix tree. RegExp is not fast, and it may decreases performance on other runtimes as well (especially Bun because for some reason JSC has really bad RegExp implementation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants