fumiama
ec053573f1
perf(tea): use runtime.fastrand
...
name old time/op new time/op delta
TEAen/16-8 242ns ± 1% 225ns ± 2% -6.98% (p=0.008 n=5+5)
TEAen/256-8 1.71µs ± 0% 1.68µs ± 0% -1.58% (p=0.008 n=5+5)
TEAen/4K-8 25.0µs ± 1% 25.0µs ± 0% ~ (p=1.000 n=5+5)
TEAen/32K-8 202µs ± 1% 202µs ± 0% ~ (p=0.548 n=5+5)
TEAde/16-8 208ns ± 0% 207ns ± 0% ~ (p=0.198 n=5+5)
TEAde/256-8 1.65µs ± 0% 1.64µs ± 0% -0.39% (p=0.048 n=5+5)
TEAde/4K-8 24.6µs ± 0% 24.6µs ± 1% ~ (p=1.000 n=5+5)
TEAde/32K-8 199µs ± 0% 199µs ± 0% ~ (p=0.905 n=4+5)
name old speed new speed delta
TEAen/16-8 66.2MB/s ± 1% 71.2MB/s ± 2% +7.51% (p=0.008 n=5+5)
TEAen/256-8 150MB/s ± 0% 152MB/s ± 0% +1.61% (p=0.008 n=5+5)
TEAen/4K-8 164MB/s ± 1% 164MB/s ± 0% ~ (p=1.000 n=5+5)
TEAen/32K-8 162MB/s ± 1% 162MB/s ± 0% ~ (p=0.548 n=5+5)
TEAde/16-8 154MB/s ± 0% 154MB/s ± 0% ~ (p=0.222 n=5+5)
TEAde/256-8 165MB/s ± 0% 165MB/s ± 0% ~ (p=0.056 n=5+5)
TEAde/4K-8 167MB/s ± 0% 167MB/s ± 1% ~ (p=1.000 n=5+5)
TEAde/32K-8 165MB/s ± 0% 165MB/s ± 0% ~ (p=0.825 n=4+5)
2021-11-23 13:18:58 +08:00
wdvxdr
ec4cd4a6f3
style: internal/proto
...
use this package for conveniently replacing proto package
in the future.
2021-11-22 22:05:19 +08:00
wdvxdr
6e33d2fc34
feat: stash client functions
...
when we restart a client, it takes too long to sync the friend & group lists. This stash functions will help us to reduce sync time when in development.
DON'T USE THIS, this is not checked.
2021-11-21 23:25:52 +08:00
github-actions[bot]
e50f46a111
ci(chore): Fix stylings
2021-11-21 13:20:37 +00:00
Mrs4s
dd5435de62
Merge pull request #202 from Kengxxiao/upstream-dev
...
feat: GetUserRoles
2021-11-21 21:20:10 +08:00
Mrs4s
0ac2dad0ee
Merge pull request #201 from Blackjack200/master
...
rename NewWriter to SelectWriter
2021-11-21 21:19:26 +08:00
Kengxxiao
56d2280cde
feat: GetUserRoles
2021-11-21 17:10:44 +08:00
Blackjack200
70af1fee57
rename NewWriter to SelectWriter
2021-11-21 12:58:34 +08:00
Mrs4s
7e6eaa7627
Merge branch 'master' of github.com:/Mrs4s/MiraiGo
2021-11-21 01:13:23 +08:00
Mrs4s
a807e8ea7e
feat: new channel type
2021-11-21 01:13:01 +08:00
github-actions[bot]
eb705deb07
ci(chore): Fix stylings
2021-11-20 14:43:41 +00:00
Mrs4s
0329290276
feat: GetGuildMembers page up
2021-11-20 22:42:54 +08:00
Mrs4s
f5ff7695da
Merge pull request #199 from LXY1226/md5-on-newclient
...
perf: no md5 on EmptyClient
2021-11-20 21:09:51 +08:00
wdvxdr
97dcddb6d4
jce: speed up read
...
don't use bytes.Buffer to inline more functions
name old time/op new time/op delta
JceReader_ReadSlice-8 614µs ±68% 523µs ±70% ~ (p=0.690 n=5+5)
RequestDataVersion2_ReadFrom-8 3.98µs ± 1% 3.54µs ± 2% -10.96% (p=0.008 n=5+5)
name old speed new speed delta
JceReader_ReadSlice-8 104MB/s ± 7% 121MB/s ± 2% +16.68% (p=0.008 n=5+5)
RequestDataVersion2_ReadFrom-8 23.4MB/s ± 1% 26.3MB/s ± 2% +12.33% (p=0.008 n=5+5)
name old alloc/op new alloc/op delta
JceReader_ReadSlice-8 196kB ±67% 184kB ±67% ~ (p=0.690 n=5+5)
RequestDataVersion2_ReadFrom-8 2.59kB ± 0% 2.62kB ± 0% +1.04% (p=0.008 n=5+5)
name old allocs/op new allocs/op delta
JceReader_ReadSlice-8 9.02k ±67% 9.02k ±67% ~ (p=1.000 n=5+5)
RequestDataVersion2_ReadFrom-8 46.0 ± 0% 44.0 ± 0% -4.35% (p=0.008 n=5+5)
2021-11-20 20:54:19 +08:00
Lin
0cb45e1d20
perf: no md5 on EmptyClient
2021-11-20 19:07:24 +08:00
wdvxdr
43b23f4e6f
jce: speed up write
...
name old time/op new time/op delta
JceWriter_WriteMap-8 2.46µs ± 1% 2.37µs ± 1% -3.88% (p=0.000 n=9+9)
JceWriter_WriteJceStructRaw-8 1.78µs ± 1% 1.29µs ± 1% -27.38% (p=0.000 n=9+10)
name old speed new speed delta
JceWriter_WriteMap-8 37.7MB/s ± 1% 39.3MB/s ± 1% +4.04% (p=0.000 n=9+9)
JceWriter_WriteJceStructRaw-8 59.0MB/s ± 1% 81.3MB/s ± 1% +37.70% (p=0.000 n=9+10)
name old alloc/op new alloc/op delta
JceWriter_WriteMap-8 1.30kB ± 0% 1.30kB ± 0% ~ (all equal)
JceWriter_WriteJceStructRaw-8 724B ± 0% 640B ± 0% -11.60% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
JceWriter_WriteMap-8 30.0 ± 0% 30.0 ± 0% ~ (all equal)
JceWriter_WriteJceStructRaw-8 29.0 ± 0% 15.0 ± 0% -48.28% (p=0.000 n=10+10)
2021-11-20 11:38:24 +08:00
wdvxdr
3216c69d46
feat: support receive Animated Sticker
2021-11-19 23:02:45 +08:00
github-actions[bot]
b9f70f7d4c
ci(chore): Fix stylings
2021-11-19 14:08:44 +00:00
wdvxdr
aa92a8bb6c
feat: support send Animated Stickers
2021-11-19 22:07:46 +08:00
wdvxdr
1f8edc2de3
update some tlv packet
2021-11-19 20:12:56 +08:00
wdvxdr
19e2050004
feat: upload guild short video
2021-11-18 21:28:17 +08:00
wdvxdr
574c4e57b1
perf(tea): unrolling encode
...
name old time/op new time/op delta
TEAen/16-8 237ns ± 0% 227ns ± 1% -4.03% (p=0.008 n=5+5)
TEAen/256-8 1.69µs ± 0% 1.60µs ± 1% -4.83% (p=0.008 n=5+5)
TEAen/4K-8 25.0µs ± 1% 23.8µs ± 2% -4.73% (p=0.008 n=5+5)
TEAen/32K-8 199µs ± 1% 188µs ± 1% -5.30% (p=0.008 n=5+5)
TEAde/16-8 196ns ± 1% 194ns ± 1% -0.89% (p=0.016 n=5+5)
TEAde/256-8 1.56µs ± 0% 1.54µs ± 0% -1.50% (p=0.008 n=5+5)
TEAde/4K-8 23.5µs ± 0% 23.2µs ± 0% -1.46% (p=0.008 n=5+5)
TEAde/32K-8 187µs ± 1% 184µs ± 1% -1.50% (p=0.008 n=5+5)
name old speed new speed delta
TEAen/16-8 67.6MB/s ± 1% 70.5MB/s ± 1% +4.20% (p=0.008 n=5+5)
TEAen/256-8 152MB/s ± 0% 160MB/s ± 1% +5.07% (p=0.008 n=5+5)
TEAen/4K-8 164MB/s ± 1% 172MB/s ± 2% +4.98% (p=0.008 n=5+5)
TEAen/32K-8 165MB/s ± 1% 174MB/s ± 1% +5.60% (p=0.008 n=5+5)
TEAde/16-8 163MB/s ± 1% 165MB/s ± 1% +0.90% (p=0.016 n=5+5)
TEAde/256-8 174MB/s ± 0% 177MB/s ± 0% +1.51% (p=0.008 n=5+5)
TEAde/4K-8 175MB/s ± 0% 177MB/s ± 0% +1.48% (p=0.008 n=5+5)
TEAde/32K-8 175MB/s ± 1% 178MB/s ± 1% +1.52% (p=0.008 n=5+5)
2021-11-17 13:33:25 +08:00
github-actions[bot]
95364f1ff8
ci(chore): Fix stylings
2021-11-16 15:55:14 +00:00
Mrs4s
782422fca1
Merge pull request #196 from Kengxxiao/master
...
频道身份组操作
2021-11-16 23:54:45 +08:00
Kengxxiao
13d2fd51da
fix
2021-11-16 23:48:04 +08:00
Kengxxiao
273dac82f8
remove unused struct
2021-11-16 23:21:41 +08:00
Kengxxiao
870922b5b6
feat: ModifyRoleInGuild
2021-11-16 23:19:05 +08:00
Kengxxiao
5181282bc5
feat: support roles management
2021-11-16 23:03:10 +08:00
Kengxxiao
5ba00392ba
add create role packet
2021-11-16 22:10:18 +08:00
wdvxdr
a69487056d
drop unsafe in TEA encryption
...
name old time/op new time/op delta
TEAen/16-8 245ns ± 0% 237ns ± 0% -3.29% (p=0.008 n=5+5)
TEAen/256-8 1.73µs ± 0% 1.69µs ± 0% -2.77% (p=0.008 n=5+5)
TEAen/4K-8 24.9µs ± 0% 25.0µs ± 1% ~ (p=0.690 n=5+5)
TEAen/32K-8 198µs ± 0% 199µs ± 1% +0.73% (p=0.008 n=5+5)
TEAde/16-8 215ns ± 1% 196ns ± 1% -8.93% (p=0.008 n=5+5)
TEAde/256-8 1.70µs ± 0% 1.56µs ± 0% -8.08% (p=0.008 n=5+5)
TEAde/4K-8 24.9µs ± 1% 23.5µs ± 0% -5.50% (p=0.008 n=5+5)
TEAde/32K-8 198µs ± 0% 187µs ± 1% -5.34% (p=0.008 n=5+5)
name old speed new speed delta
TEAen/16-8 65.4MB/s ± 0% 67.6MB/s ± 1% +3.39% (p=0.008 n=5+5)
TEAen/256-8 148MB/s ± 0% 152MB/s ± 0% +2.84% (p=0.008 n=5+5)
TEAen/4K-8 164MB/s ± 0% 164MB/s ± 1% ~ (p=0.587 n=5+5)
TEAen/32K-8 166MB/s ± 0% 165MB/s ± 1% -0.72% (p=0.008 n=5+5)
TEAde/16-8 149MB/s ± 1% 163MB/s ± 1% +9.81% (p=0.008 n=5+5)
TEAde/256-8 160MB/s ± 0% 174MB/s ± 0% +8.80% (p=0.008 n=5+5)
TEAde/4K-8 165MB/s ± 1% 175MB/s ± 0% +5.81% (p=0.008 n=5+5)
TEAde/32K-8 166MB/s ± 0% 175MB/s ± 1% +5.70% (p=0.008 n=5+5)
2021-11-16 20:54:40 +08:00
Kengxxiao
96489d00f6
add role packet
2021-11-16 20:21:18 +08:00
Mrs4s
511e8c41ed
feat: guild at encode
2021-11-15 01:08:54 +08:00
Mrs4s
55ba62e4b8
Merge branch 'master' of github.com:/Mrs4s/MiraiGo
2021-11-14 22:51:40 +08:00
Mrs4s
28e93a7e2c
fix: sync logic error
2021-11-14 22:50:54 +08:00
wdvxdr
2e441ed925
drop SendGroupGift support
...
QQ no longer provide free group gifts, so we should drop it
2021-11-14 21:52:09 +08:00
github-actions[bot]
54b035657c
ci(chore): Fix stylings
2021-11-14 09:17:54 +00:00
Mrs4s
baf792f68a
Merge branch 'master' of github.com:/Mrs4s/MiraiGo
2021-11-14 17:17:16 +08:00
Mrs4s
8427db5347
feat: support guild at message decode
2021-11-14 17:16:01 +08:00
wdvxdr
1ea4f641d4
fix: better error handle for upload long message
2021-11-14 12:06:50 +08:00
Mrs4s
c0ade34f1d
fix: panic on get non admin-role-group guild members
2021-11-14 04:53:13 +08:00
Mrs4s
e8cf25f6f4
fix: send guild channel message response decoder panic error
2021-11-14 04:50:06 +08:00
Mrs4s
849be61d5a
feat: GuildChannelDestroyedEvent
2021-11-14 04:46:57 +08:00
Mrs4s
c149f28fb8
feat: GuildChannelCreatedEvent
2021-11-14 04:33:02 +08:00
Mrs4s
d3a21e577b
fix: guild image type error
2021-11-13 02:30:36 +08:00
wdvxdr
7b125259d6
style: sort imports
2021-11-12 23:43:22 +08:00
wdvxdr
96f4e74496
style: rename packets2 to packets
2021-11-12 16:30:20 +08:00
wdvxdr
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
github-actions[bot]
b85fc25cd5
ci(chore): Fix stylings
2021-11-11 18:17:49 +00:00
Mrs4s
9350021852
feat: SendGuildChannelMessage return *message.GuildChannelMessage
2021-11-12 02:17:01 +08:00
github-actions[bot]
19b2c4c5c8
ci(chore): Fix stylings
2021-11-11 17:51:34 +00:00