7 ms·
The biggest performance issues I think that some people run into with Go involve reflection which seems to be slow. Something that does a lot of JSON parsing fo
by yukichan 12y ago
The biggest performance issues I think that some people run into with Go involve reflection which seems to be slow. Something that does a lot of JSON parsing for example maybe could be much slower in Go than in Java, Python or JavaScript I think. I don't have any data, but I've known people to complain about it that work with Go. I wonder if a JIT or AOT compiler might help.
- schmichael 12y agoThere are libraries that generate specialized marshallers to fix precisely this issue: https://journal.paul.querna.org/articles/2014/03/31/ffjson-faster-json-in-go/ https://journal.paul.querna.org/articles/2014/03/31/ffjson-f...
- joncooper 12y agoThat is an interesting project but won't yet help to speed up the (very slow) JSON unmarshalling.
- schmichael 12y agoIndeed, that's on the TODO list at the bottom.