Remix.run Logo
Golang optimizations for high‑volume services(packagemain.tech)
17 points by der_gopher 3 days ago | 2 comments
ad_hockey 10 minutes ago | parent | next [-]

I've been thinking about trying an alternative JSON library, but interested to hear opinions on whether jsoniter is still recommended. There are 208 open issues on the repo, and a question about whether it's still maintained[1]

Would particularly like to know if anyone has done a performance comparison with the new API coming in the stdlib[2], which feels like a better bet. That blog says:

The Marshal performance of v2 is roughly at parity with v1. Sometimes it is slightly faster, but other times it is slightly slower. The Unmarshal performance of v2 is significantly faster than v1, with benchmarks demonstrating improvements of up to 10x.

[1] https://github.com/json-iterator/go/issues/706

[2] https://go.dev/blog/jsonv2-exp

jftuga 16 minutes ago | parent | prev [-]

I'd be curious to know transactions per second (or other metrics) before and after the suggested changes.