- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 21.3k
Closed
Description
Pros
- Less subdependencies and smaller size:
- ~1MB (qs) vs. ~30 kB (fast-querystring)
- https://npmgraph.js.org/?q=qs vs https://npmgraph.js.org/?q=fast-querystring
- Also less bloat (14 deps vs 1 deps)
- qs's subdeps have a lot of recursion in require cycles as well
- all of qs and it's dependencies is maintained by the same developer (could be a security concern)
 
- Might be useful for serverless folks that use express(if there's platform that allowsexpressto be used, at least)
 
- ~1MB (
Cons
- fast-querystringrequires at least Node 8:- it uses object destructuring and trailing commas
- it might be possible to convince the author to remove the trailing commas, then it would be usable with Node 6
 
- Node 8 has been out of support for more than 5 years now (support stopped on Jan 1st 2019, according to endoflife.date/nodejs)
- Node 0.10 is even older, I can't even find an EOL date for it
 
- it uses object destructuring and trailing commas
- fast-querystringdoesn't support setting prototypes- this is unsafe either way, though it can probably get released in express v5
 
Notes
- Slightly better performance:
   - this test was done using the benchmarkfolder in this repo and just replacing therequirecall tofast-querystringon a idling 7950X running Node v8.17.0
 
- this test was done using the 
- It might be useful to maybe port to using URLSearchParamswhich has been supported since Node 10- just looked at Replacing querystring with fast-querystring #4990 which mentioned URLSearchParamsto be pretty slow, though, this needs to be benchmarked first
 
- just looked at Replacing querystring with fast-querystring #4990 which mentioned 
DogPawHat, mitchell-abbott, macarie, matrv, zmzlois and 6 moremitchell-abbott, zmzlois, STNeto1, danielroe, Nsttt and 1 moremitchell-abbott, zmzlois, STNeto1 and Nsttt
Metadata
Metadata
Assignees
Labels
No labels