Re:Part 2 Dart vs Go vs Python (and PyPy) Performance
by mdwrigh2 on Thursday April 12, 2012 @12:32AM
(#3831038)
I spun the JSON decoding off into a few goroutines and managed to get it down to ~1second (but it was out of order, so didn't quite solve the same problem - though this is fixable). This is was ~10 lines of Go (and only using a single core).
Re:Part 2 Dart vs Go vs Python (and PyPy) Performance
by Teef on Thursday April 12, 2012 @09:09AM
(#3832137)
This was my bad I have updated the post. I should have been marsheling to a more comparable datatype (map[string]interface{}{}) and now the performance is more in line with what I would expect. I need to look into the Unmarshal code to see why this is so slow.
That and similar type-specific handling could be built into the json package fairly easily, and would make those cases quite a bit faster. Then again, I bet the Go team would have a better and more general idea.