43081j / picoquery

A small library for parsing and serializing query strings
MIT License
70 stars 2 forks source link

perf: rework stringify to avoid array alloc #25

Closed 43081j closed 4 months ago

43081j commented 4 months ago

Changes the stringify logic to build a string up internally rather than producing an array of traversed key/value pairs.

Should result in a little less memory usage and seems to bump the perf up a fair amount in some cases.