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

1039 Commits

Author SHA1 Message Date
Mrs4s
355fe4a410
Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-12-06 21:57:01 +08:00
Mrs4s
d094d0483d
Merge pull request #210 from fumiama/master
fix(#209): OpenWriterF encode error
2021-12-04 20:40:55 +08:00
fumiama
d3ab5965d5 fix(#209): OpenWriterF encode error 2021-12-04 20:31:11 +08:00
Mrs4s
c73026ce09
update dep 2021-12-04 18:08:59 +08:00
Mrs4s
a2e7548a2b
ref: remove guild FindMember func & remove guild members cache 2021-12-04 18:08:20 +08:00
Mrs4s
34bb74d1d1
fix: lz4 decode error 2021-12-04 17:43:00 +08:00
Mrs4s
e043181fc1
Merge pull request #203 from fumiama/master
perf: on jce & tea & pool & writer
2021-12-03 12:30:19 +08:00
Mrs4s
96fd4d32e7
fix: nil pointer panic on guild event flow decoder 2021-12-02 12:00:17 +08:00
github-actions[bot]
c0713ba75d ci(chore): Fix stylings 2021-12-01 17:04:11 +00:00
Mrs4s
d08d9dbddd
feat: decode compressed guild event packet. close #207 2021-12-02 01:03:10 +08:00
Mrs4s
9778dd2369
feat: MemberJoinedGuildEvent 2021-11-27 20:28:46 +08:00
Mrs4s
524b2b7881
update protobuf 2021-11-27 17:25:29 +08:00
Mrs4s
5c5e61d279
fix build 2021-11-27 02:04:57 +08:00
Mrs4s
14bb70f1f0
Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-11-27 02:02:32 +08:00
Mrs4s
67bf336f22
feat: PostTopicChannelFeed 2021-11-27 02:02:13 +08:00
github-actions[bot]
88279a654a ci(chore): Fix stylings 2021-11-26 17:21:51 +00:00
Mrs4s
8b4b8269f3
feat: GetTopicChannelFeeds 2021-11-27 01:21:04 +08:00
源文雨
b27ab903f1
Merge branch 'master' into master 2021-11-26 15:06:02 +08:00
fumiama
13a9d087e7 perf(jce): drop reflect in reader
name                   old time/op    new time/op    delta
JceReader_ReadSlice-8    1.53ms ±90%    0.82ms ±86%  -46.30%  (p=0.017 n=16+16)

name                   old speed      new speed      delta
JceReader_ReadSlice-8   117MB/s ± 3%   228MB/s ± 4%  +94.43%  (p=0.000 n=16+16)

name                   old alloc/op   new alloc/op   delta
JceReader_ReadSlice-8     516kB ±88%     536kB ±85%     ~     (p=0.780 n=16+16)

name                   old allocs/op  new allocs/op  delta
JceReader_ReadSlice-8     25.6k ±88%     26.6k ±85%     ~     (p=0.780 n=16+16)
2021-11-26 15:02:44 +08:00
github-actions[bot]
e8e50b5062 ci(chore): Fix stylings 2021-11-26 02:22:51 +00:00
Mrs4s
915d2da4cc
Merge remote-tracking branch 'origin/master'
# Conflicts:
#	client/guild.go
#	client/pb/channel/GuildChannelBase.pb.go
#	client/pb/channel/GuildFeedCloudMeta.pb.go
#	client/pb/channel/GuildFeedCloudRead.pb.go
#	client/pb/channel/MsgResponsesSvr.pb.go
#	client/pb/qweb/protocol.pb.go
2021-11-26 10:21:59 +08:00
Mrs4s
6514cd144e
protocol: update protobuf files 2021-11-26 10:19:08 +08:00
github-actions[bot]
59a3a3b2c0 ci(chore): Fix stylings 2021-11-26 01:58:28 +00:00
Mrs4s
ce23185cde
protocol: update protobuf files & save work progress 2021-11-26 09:57:41 +08:00
Mrs4s
797a912b6d
protocol: update protobuf files & save work progress 2021-11-26 09:54:46 +08:00
wdvxdr
b483e44f9c
proto: use protoc-gen-golite generated files 2021-11-25 21:23:49 +08:00
wdvxdr
4bdb791334
dep: use RomiChan/protobuf 2021-11-24 21:57:13 +08:00
Mrs4s
4c60c8ee47
Merge branch 'master' of github.com:/Mrs4s/MiraiGo 2021-11-24 00:04:12 +08:00
Mrs4s
9c5515ca9f
fix typo 2021-11-24 00:03:56 +08:00
fumiama
a70e0f20de perf: add 0 alloc func OpenWriterF 2021-11-23 16:21:06 +08:00
fumiama
26579583cc drop(pool): unnecessay nil judge 2021-11-23 15:35:52 +08:00
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