3 ms·
> The upside of those tradeoffs are that it improves our query throughput by about 20% compared to simd_json Woah, that's impressive. I wonder if `str` is may
by staticassertion 5y ago
> The upside of those tradeoffs are that it improves our query throughput by about 20% compared to simd_json
Woah, that's impressive.
I wonder if `str` is maybe an antipattern for a lot of JSON use cases where you can perform utf8 validation lazily or avoid it altogether for data you don't need.
Given a service architecture with mTLS, and so long as you aren't doing anything sensitive based on the data, I could see an approach like this being valuable.
That said, I also wonder if it's worth pushing JSON into use cases like this to begin with?
- chrismorgan 5y agoBoth squirrel-json and simd_json are doing UTF-8 validation, that’s not the difference. squirrel-json does it as a first pass before the parsing, simd_json does it during parsing, but both are doing it.