3 ms·
You can get near the same speedup by just avoiding reflection. You unmarshal into an interface{} then pull the data out manually using type assertions as necess
by eikenberry 13y ago
You can get near the same speedup by just avoiding reflection. You unmarshal into an interface{} then pull the data out manually using type assertions as necessary. In my last project I think I got about a 1.6-1.7 speedup this way.
- alecthomas 13y agoNice hack (in the hacker sense), but not exactly convenient.