-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
📝 [Proposal]: Improving route matching and url parsing performance with Ada Url #3019
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
Can you share the results of the comparison with us? @ReneWerner87 :) |
perhaps a misunderstanding we can test the package in fiber and then look at the results |
Then I'll take the time to do some benchmarks over the weekend if you like, and we'll continue by adding the benchmarks here, along with the existing and island url. |
This requires cgo, which would be a real shame to force on users. If it's included in fiber, I think it should be an optional addon. |
@ReneWerner87 I think we can close this since it requires CGO |
Ok, thx |
Feature Proposal Description
Ada Url can parse url information really fast. Because it processes simd and data in parallel, which means doing multiple operations at once. By parsing url parsing information quickly, we can actually approach the speed of fasthttp.
After Ada Url started using nodejs, they got a really big performance boost. At least we should be able to enable this feature via fiber config.
https://github.com/ada-url/ada#ada-is-fast
Alignment with Express API
It does not include any changes that will affect the interface of Express JS.
HTTP RFC Standards Compliance
This feature only speeds up route matching and url fragmentation. It is not a feature that will break any existing structure.
API Stability
This feature only speeds up route matching and url fragmentation. It is not a feature that will break any existing structure. As I mentioned above, nodejs has provided more than 4x performance increase thanks to this library. It also already uses this library.
Feature Examples
Checklist:
The text was updated successfully, but these errors were encountered: