1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

5 Commits

Author SHA1 Message Date
wdvxdr
6fd104a8b9
perf(coolq): optimize CQCodeEscapeText. 2021-08-01 00:16:21 +08:00
wdvxdr
2fbaff8e72
refactor(cqcode): drop unsafe for cqcode deserialize
name                          old time/op    new time/op    delta
CQBot_ConvertStringMessage-8    1.22µs ± 5%    1.14µs ± 4%  -6.17%  (p=0.000 n=21+18)

name                          old speed      new speed      delta
CQBot_ConvertStringMessage-8  81.2MB/s ± 6%  86.7MB/s ± 3%  +6.84%  (p=0.000 n=20+18)
2021-05-02 13:39:17 +08:00
wdvxdr
a5314f0b6d
add array benchmark 2021-04-20 13:15:33 +08:00
wdvxdr
6dfa5e5959
fix(config): only read config once 2021-04-08 22:30:17 +08:00
wdvxdr
976f2233b4
Speed up cqcode parsing
BenchmarkCQBot_ConvertStringMessage-8             232700              4743 ns/op            2672 B/op         65 allocs/op
BenchmarkCQBot_ConvertStringMessage2-8            752025              1643 ns/op            1376 B/op         17 allocs/op
2021-02-21 22:43:12 +08:00