Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json: do all reflect work before decoding #16212
Hey @sctb, I promised to pester you when the 1.8 tree opened up again, and offer some more bad advice about what issues to work on. This one is pretty vague and likely to be a bit gnarly, so...a perfect terrible recommendation for you. :) Happy to suggest others as well, depending on what part of the world you care about this month...
referenced this issue
Aug 26, 2018
I've closed the broad json performance issue #5683 in favor of more specific performance issues about the encoder and decoder. This is the obvious first choice - the decoder is way slower than the encoder, and reflection is the obvious culprit.
I imagine that doing this, especially for structs, would give a noticeable speed-up. I might give this a look during the current 1.12 cycle.