mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
ce8f7f6353
Inline varint decoding of small (1- and 2-byte) field tags in the fast-path unmarshaler. name old time/op new time/op delta EmptyMessage/Wire/Unmarshal 40.6ns ± 1% 40.2ns ± 1% -1.02% (p=0.000 n=37+35) EmptyMessage/Wire/Unmarshal-12 6.77ns ± 2% 7.13ns ± 5% +5.32% (p=0.000 n=37+37) RepeatedInt32/Wire/Unmarshal 9.46µs ± 1% 6.57µs ± 1% -30.56% (p=0.000 n=38+39) RepeatedInt32/Wire/Unmarshal-12 1.50µs ± 2% 1.05µs ± 2% -30.00% (p=0.000 n=39+37) Required/Wire/Unmarshal 371ns ± 1% 258ns ± 1% -30.44% (p=0.000 n=38+32) Required/Wire/Unmarshal-12 60.3ns ± 1% 44.3ns ± 2% -26.45% (p=0.000 n=38+36) Change-Id: Ie80415dea8cb6b840eafa52f0572046a1910a9b1 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/216419 Reviewed-by: Joe Tsai <joetsai@google.com> |
||
---|---|---|
.. | ||
wire_test.go | ||
wire.go |