1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00
wdvxdr 21ff14fd5c
optimize(binary): allow inline (*encoder).svarint
name                       old time/op  new time/op  delta
encoder_svarint/short-8   7.12ns ± 2%  6.24ns ± 2%  -12.36%  (p=0.000 n=10+9)
encoder_svarint/medium-8  8.86ns ± 3%  7.82ns ± 2%  -11.76%  (p=0.000 n=10+10)
encoder_svarint/large-8   12.2ns ± 1%  11.4ns ± 2%   -5.99%  (p=0.000 n=10+10)

BTW, (*encoder).u32 and (*encoder).u64 can be inlined with go1.18
2021-11-07 13:56:40 +08:00
..
2021-10-16 22:11:21 +08:00
2021-07-13 10:17:36 +08:00
2021-11-06 14:41:47 +08:00
2021-07-13 10:17:36 +08:00
2021-03-23 22:37:36 +08:00
2021-07-13 10:17:36 +08:00