You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says:
JSON cannot represent cyclic data structures and Marshal does not
handle them. Passing cyclic structures to Marshal will result in
an error.
However, passing cyclic maps or slices still results in an infinite
recursion.
Cycle detection is now added into mapEncoder and sliceEncoder.
name old time/op new time/op delta
CodeEncoder-16 933µs ± 0% 1324µs ± 0% ~ (p=1.000 n=1+1)
CodeMarshal-16 940µs ± 0% 1436µs ± 0% ~ (p=1.000 n=1+1)
name old speed new speed delta
CodeEncoder-16 2.08GB/s ± 0% 1.47GB/s ± 0% ~ (p=1.000 n=1+1)
CodeMarshal-16 2.06GB/s ± 0% 1.35GB/s ± 0% ~ (p=1.000 n=1+1)
name old alloc/op new alloc/op delta
CodeEncoder-16 7.00B ± 0% 94933.00B ± 0% ~ (p=1.000 n=1+1)
CodeMarshal-16 1.98MB ± 0% 2.04MB ± 0% ~ (p=1.000 n=1+1)
name old allocs/op new allocs/op delta
CodeEncoder-16 0.00 11816.00 ± 0% ~ (p=1.000 n=1+1)
CodeMarshal-16 1.00 ± 0% 11816.00 ± 0% ~ (p=1.000 n=1+1)
Fixes#40745.
0 commit comments