-
Notifications
You must be signed in to change notification settings - Fork 761
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
feat: migrate to picoquery #3606
Conversation
Migrates to using picoquery for query string parsing, a much faster and lighter library. Note that we have to decode the stringified query in some cases since we were previously double encoding.
@char0n any chance you or another maintainer can take a look at this? the performance gain is around 6-7x the speed of qs |
Hi, It's being considered. There is also a proposal to just use native URLSearchParams here - #3585. |
I've issued #3633 where we eliminate code that don't really need |
that works for me! i would push for using note your other PR still has the dependency. we should be able to drop it still |
I'm still researching how exactly we use
There are two location where Related to |
temporarily true while we land the various PRs across the ecosystem to introduce it (starting with storybook for example) you are right though, it is fairly new (though it is a fork on fast-querystring which certainly is battle tested) we have to start somewhere. this is the start of a larger migration (part of the ecosystem-cleanup) you have these options really:
also be aware i'm not just trying to push some random new library here. the cleanup project is a huge job, and a query string library was one of the major gaps we've now filled by publishing a new library. we will be recommending this library and contributing it to many other projects as time goes on. that said, it is new regardless. so if you're not up for that, we should wait or switch to |
@43081j, thanks for explaining the full context in #3606 (comment) and I fully support your effort. I've managed to construct a simple algorithm that just replicates what we originally needed from |
Superseded by #3634. Thank you again for opening this topic and all the ecosystem-cleanup effort |
Migrates to using picoquery for query string parsing, a much faster and lighter library.
Note that we have to decode the stringified query in some cases since we were previously double encoding.
PQ lets you configure the nesting syntax style, but it seems we don't actually care about that much since we basically dump a JSON object in a single parameter rather than encoding it as query params.
Motivation and Context
As part of the ongoing ecosystem cleanup, we are migrating various projects to use lighter/faster packages.
In this case, moving from qs to picoquery - primarily because it is much faster.
How Has This Been Tested?
Existing tests should cover it. Though if there are any gaps or places you think we should increase test coverage, please do shout up.
Types of changes
package.json
)Checklist: