encoding/json: Marshal doesn't use newEncodeState #14530
Closed
Labels
Comments
No, because in Marshal the memory returned is owned by the caller, so we can't reuse it. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to use newEncodeState in json.Marshal like json Encoder does?
https://golang.org/src/encoding/json/encode.go?h=newEncodeState#L138
The text was updated successfully, but these errors were encountered: