forked from cerc-io/plugeth
This change improves the performance of encoding/decoding [N]byte.
name old time/op new time/op delta
DecodeByteArrayStruct-8 336ns ± 0% 246ns ± 0% -26.98% (p=0.000 n=9+10)
EncodeByteArrayStruct-8 225ns ± 1% 148ns ± 1% -34.12% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
DecodeByteArrayStruct-8 120B ± 0% 48B ± 0% -60.00% (p=0.000 n=10+10)
EncodeByteArrayStruct-8 0.00B 0.00B ~ (all equal)
|
||
|---|---|---|
| .. | ||
| decode_tail_test.go | ||
| decode_test.go | ||
| decode.go | ||
| doc.go | ||
| encode_test.go | ||
| encode.go | ||
| encoder_example_test.go | ||
| iterator_test.go | ||
| iterator.go | ||
| raw_test.go | ||
| raw.go | ||
| safe.go | ||
| typecache.go | ||
| unsafe.go | ||