Closed nwt closed 1 year ago
Decoder.Decode always calls json.Unmarshal and Decoder.decodeSchema, both of which are expensive. Speed things up by calling them only if the Decoder hasn't seen the schema's JSON encoding before.
Decoder.Decode always calls json.Unmarshal and Decoder.decodeSchema, both of which are expensive. Speed things up by calling them only if the Decoder hasn't seen the schema's JSON encoding before.