-
-
Notifications
You must be signed in to change notification settings - Fork 7.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
perf: replace querystring with fast-querystring #10248
Conversation
This is about an 25% increase compared to the original My vote is to keep an eye on this parsing implementation, but not to bring it into Nest quite yet, as it's still very fresh. |
Thanks for the comment @jmcdo29. You're absolutely right about the age of the library. I released it couple of days ago, but the benchmarks and the test suite (which is a replica of node.js querystring module) speak for itself. PS: Regarding fast-decode-uri-component, it has 19 stars, but has a weekly download of 784,858 and provides a faster solution to |
True, and that's definitely good to see. I'm usually hesitant with brand new libraries just to make sure that there will be long term support for them.
Oh interesting, seeing that fastify is already planning for this, looked like in February/March, we may try to do the same around then. Let's see what @kamilmysliwiec thinks as well.
True, but it can help give insight into how much the library is used by the community and how backed it is in the case of a dev leaving maintenance of it (more stars, more likely to have someone fork it usually). |
7178cf5
to
6b1fb48
Compare
Somehow |
6b1fb48
to
adefc37
Compare
Ah, yeah, we're still using npm 6 with a package-lock.json v1. npm 8 uses v2 and changes the structure |
Hey @jmcdo29 I just released 0.7.0 which includes more performance improvements. Can you redo your benchmark when you have the chance? I'm quite curious about a real-time improvement of fast-querystring. Thanks! |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Replacing
querystring
withfast-querystring
improves performanceIssue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information