encoding/json: json.Decoder Token method is two times slow than Decode #58786
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
question
I need Depth limit decode function with json data
but std json did not support, I want to use json.Decoder.Token to implement it
performance test
I write below benchmark to test it's performance
https://gist.github.com/bigpigeon/93f90fe84cf96f10356541c22db6e7dc
the getAllToken is even slower than Decode
What version of Go are you using (
go version
)?The text was updated successfully, but these errors were encountered: