1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-07-03 05:03:26 +00:00

1368 Commits

Author SHA1 Message Date
e8cf25f6f4 fix: send guild channel message response decoder panic error 2021-11-14 04:50:06 +08:00
849be61d5a feat: GuildChannelDestroyedEvent 2021-11-14 04:46:57 +08:00
c149f28fb8 feat: GuildChannelCreatedEvent 2021-11-14 04:33:02 +08:00
d3a21e577b fix: guild image type error 2021-11-13 02:30:36 +08:00
7b125259d6 style: sort imports 2021-11-12 23:43:22 +08:00
96f4e74496 style: rename packets2 to packets 2021-11-12 16:30:20 +08:00
2a92b2755f perf: speed up tea encrypt & decrypt
name         old time/op    new time/op    delta
TEAen/16-8      260ns ± 0%     245ns ± 0%   -5.83%  (p=0.008 n=5+5)
TEAen/256-8    1.86µs ± 0%    1.73µs ± 0%   -6.86%  (p=0.008 n=5+5)
TEAen/4K-8     27.8µs ± 0%    24.9µs ± 0%  -10.19%  (p=0.008 n=5+5)
TEAde/16-8      223ns ± 1%     215ns ± 1%   -3.24%  (p=0.008 n=5+5)
TEAde/256-8    1.88µs ± 0%    1.70µs ± 0%   -9.49%  (p=0.000 n=4+5)
TEAde/4K-8     28.1µs ± 1%    24.9µs ± 1%  -11.43%  (p=0.008 n=5+5)

name         old speed      new speed      delta
TEAen/16-8   61.6MB/s ± 0%  65.4MB/s ± 0%   +6.19%  (p=0.008 n=5+5)
TEAen/256-8   138MB/s ± 0%   148MB/s ± 0%   +7.35%  (p=0.008 n=5+5)
TEAen/4K-8    147MB/s ± 0%   164MB/s ± 0%  +11.34%  (p=0.008 n=5+5)
TEAde/16-8    144MB/s ± 1%   149MB/s ± 1%   +3.34%  (p=0.008 n=5+5)
TEAde/256-8   145MB/s ± 0%   160MB/s ± 0%  +10.47%  (p=0.016 n=4+5)
TEAde/4K-8    146MB/s ± 1%   165MB/s ± 1%  +12.90%  (p=0.008 n=5+5)
2021-11-12 11:40:40 +08:00
b85fc25cd5 ci(chore): Fix stylings 2021-11-11 18:17:49 +00:00
9350021852 feat: SendGuildChannelMessage return *message.GuildChannelMessage 2021-11-12 02:17:01 +08:00
19b2c4c5c8 ci(chore): Fix stylings 2021-11-11 17:51:34 +00:00
b644f5c158 feat: UploadGuildImage 2021-11-12 01:50:30 +08:00
e3411adb3d feat: GuildChannelUpdatedEvent 2021-11-11 19:25:59 +08:00
e02a9ece6e fix: missing args 2021-11-11 19:02:04 +08:00
551a865d9e protocol: use FetchChannelList to fill channel list field 2021-11-11 18:59:52 +08:00
8de7862072 ci(chore): Fix stylings 2021-11-11 10:52:40 +00:00
6a525b2f8d feat: FetchChannelList 2021-11-11 18:51:58 +08:00
261edb101e style: use unpackOIDBPackage decode oidb response 2021-11-11 17:57:06 +08:00
68956c83bc ci(chore): Fix stylings 2021-11-11 09:52:54 +00:00
5e76774dd4 Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-11-11 17:52:18 +08:00
d7c66bf26a feat: FetchChannelInfo 2021-11-11 17:51:59 +08:00
2ba34b09cf ci(chore): Fix stylings 2021-11-09 20:12:48 +00:00
75d6d547d2 feat: SendGuildChannelMessage 2021-11-10 04:12:01 +08:00
cc17020dab feat: FindChannel method 2021-11-10 00:59:59 +08:00
190c494409 fix: method missing 2021-11-09 03:25:42 +08:00
c48c5bca49 ci(chore): Fix stylings 2021-11-08 19:17:04 +00:00
af9ed48cb7 feat: query guild service image 2021-11-09 03:16:26 +08:00
12e40ef1ea update todo 2021-11-08 18:20:45 +08:00
fc514b6f2d ci(chore): Fix stylings 2021-11-08 10:08:21 +00:00
94a439c4a4 Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-11-08 18:07:43 +08:00
10a98ca4f1 feat: supported parsing emoji reactions updated event operator id and message sender uin 2021-11-08 18:07:32 +08:00
82771d3481 ci(chore): Fix stylings 2021-11-08 09:37:02 +00:00
c350734b4f update GuildMessageReactionsUpdatedEvent fields 2021-11-08 17:36:22 +08:00
4dc25fd095 ci(chore): Fix stylings 2021-11-07 20:52:18 +00:00
b1d5a3d064 feat: GuildMessageReactionsUpdatedEvent 2021-11-08 04:51:35 +08:00
fedd7f0507 upload pb 2021-11-07 22:54:59 +08:00
1b9956b79b feat: GuildChannelMessageEvent 2021-11-07 22:54:26 +08:00
68628a3ca3 fix typo 2021-11-07 21:22:02 +08:00
bec52b9b29 fix typo 2021-11-07 20:29:42 +08:00
aba75d5733 fix: fix wrong byte array length in (*encoder).u32 2021-11-07 13:58:46 +08:00
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
4a777539be test: add benchmark for (*encoder).uvarint 2021-11-07 13:28:17 +08:00
2dd9727a6a Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-11-06 23:39:18 +08:00
0f35e25413 fix typo 2021-11-06 23:39:04 +08:00
f33bd243db ci(chore): Fix stylings 2021-11-06 15:38:23 +00:00
991f69f141 feat: ChannelService.FetchGuestGuild 2021-11-06 23:37:33 +08:00
7d6dafc215 style: rename channel to guild 2021-11-06 16:17:26 +08:00
dd7ff422b8 ci(chore): Fix stylings 2021-11-06 08:02:10 +00:00
c8b4e19b19 feat: ChannelService.GetUserProfile & pull self guild profile on login 2021-11-06 16:01:34 +08:00
4dfdc22a70 style: cleanup dynamic proto encode 2021-11-06 15:27:56 +08:00
af5e25d1cc Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-11-06 15:24:54 +08:00