Damien Neil
adbbc8ec47
internal/impl: inline some small varint decoding
Inline decoding of 1- and 2-byte varints in generated unmarshal
functions.
name old time/op new time/op delta
EmptyMessage/Wire/Unmarshal 40.2ns ± 2% 40.1ns ± 1% ~ (p=0.355 n=37+37)
EmptyMessage/Wire/Unmarshal-12 7.12ns ± 1% 6.87ns ± 1% -3.49% (p=0.000 n=37+39)
RepeatedInt32/Wire/Unmarshal 6.46µs ± 1% 5.78µs ± 1% -10.65% (p=0.000 n=35+33)
RepeatedInt32/Wire/Unmarshal-12 1.05µs ± 2% 0.98µs ± 2% -6.79% (p=0.000 n=33+40)
Required/Wire/Unmarshal 251ns ± 1% 216ns ± 1% -13.69% (p=0.000 n=38+36)
Required/Wire/Unmarshal-12 42.4ns ± 1% 37.7ns ± 2% -11.02% (p=0.000 n=37+39)
Change-Id: Iecfc38fcae00979b89a093368821cca7f2357578
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/216421
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2020-01-27 19:09:55 +00:00
..
2020-01-06 19:10:59 +00:00
2020-01-07 21:36:47 +00:00
2020-01-22 20:57:14 +00:00
2020-01-27 19:09:55 +00:00
2019-07-08 20:12:42 +00:00
2019-07-08 20:12:42 +00:00
2020-01-22 20:57:14 +00:00
2020-01-22 00:22:46 +00:00
2020-01-24 20:27:57 +00:00
2020-01-22 00:22:58 +00:00
2020-01-22 00:22:58 +00:00
2019-07-08 20:12:42 +00:00
2019-11-26 22:58:51 +00:00
2019-12-17 22:14:17 +00:00
2019-09-17 21:33:16 +00:00
2020-01-26 22:23:18 +00:00
2020-01-22 20:52:17 +00:00
2019-10-07 21:08:26 +00:00
2019-10-07 21:08:26 +00:00
2020-01-12 08:13:18 +00:00
2020-01-07 21:36:47 +00:00
2019-12-09 18:59:42 +00:00
2020-01-12 08:13:18 +00:00
2020-01-12 09:18:34 +00:00
2019-03-22 20:01:07 +00:00
2019-12-10 16:55:03 +00:00
2019-09-19 23:27:15 +00:00
2020-01-12 08:13:18 +00:00
2019-11-06 18:17:25 +00:00
2020-01-22 20:52:17 +00:00
2020-01-12 08:13:18 +00:00
2019-11-26 22:58:51 +00:00
2019-12-16 21:49:33 +00:00
2020-01-12 08:13:18 +00:00
2019-11-05 18:31:30 +00:00
2019-12-09 22:57:38 +00:00
2019-10-04 17:07:45 +00:00
2019-10-04 17:07:45 +00:00
2020-01-26 22:23:18 +00:00
2019-10-04 17:07:45 +00:00