Building a high performance JSON parser
dave.cheney.net
Building a high performance JSON parser
1–10 of 193 posts
Re: Building a high performance JSON parser
#2Re: Building a high performance JSON parser
#3If you're going for pure performance in a production environment you might take a look at Daniel Lemire's work: https://github.com/simdjson/simdjson. Or the MinIO port of it to Go: https://github.com/minio/simdjson-go.
Re: Building a high performance JSON parser
#4Re: Building a high performance JSON parser
#5Re: Building a high performance JSON parser
#6[flagged]
> This package offers the same high level json.Decoder API but higher throughput and reduced allocations
Re: Building a high performance JSON parser
#7The baseline whitespace count/search operation seems like it would be MUCH faster if you vectorized it with SIMD, but I can understand that being out of scope for the author.
Re: Building a high performance JSON parser
#8[flagged]
This way they only paid the parsing tax (decoding doubles, etc..) if the user used that data.
You hit the nail on the head
Re: Building a high performance JSON parser
#9The walkthrough is very nice, how to do this if you're going to do it. If you're going for pure performance in a production environment you might take a look at Daniel Lemire's work: https://github.com/simdjson/simdjson . Or the MinIO port of it to Go: https://github.com/minio/simdjson-go .