4 ms·
Curious, any description as to why it's faster? Something intrinsic to Reason Native/OCaml? Architectural changes? Reduced feature set?
by gkfasdfasdf 6y ago
Curious, any description as to why it's faster? Something intrinsic to Reason Native/OCaml? Architectural changes? Reduced feature set?
- tyingq 6y agoJq appears to have its own hand written json parser and requires flex/bison. I suspect something about the hand written parser is slow for large data sets. I was somewhat surprised it didn't use an existing json parser library.
- brundolf 6y agoI'm doubly surprised that such a popular utility uses bison; generated parsers tend to be slower than handwritten parser, and JSON isn't exactly the world's hardest language to parse
- masklinn 6y agojq’s in C do probably not anything intrinsic. Not to mention I don’t think the ocaml compiler is an optimisation beast.
- dubcanada 6y agoWell it is missing a ton of jq functionality, it's possible that in that list is something causing the performance degradation.