3 ms·
There is also https://github.com/segmentio/encoding https://github.com/segmentio/encoding, which aims to have a zero allocation fastpath while preserving compat
by vlowther 6y ago
There is also https://github.com/segmentio/encoding https://github.com/segmentio/encoding, which aims to have a zero allocation fastpath while preserving compatibility with encoding/json.
- Gys 6y agoFrom the OP: 'I believed that I could implement an efficient JSON parser based on my assumption that encoding/json was slower than it could be because of its API. It turned out that I was right, it looks like there is 2-3x performance in some unmarshalling paths and between 8x and 10x performance in tokenisation, if you’re prepared to accept a different API.'