Lin
d68da1f65f
chron: 移动到cmd
2021-10-27 10:09:21 +08:00
Lin
0f68dadc9a
chron: 添加下划线,修改文件权限
2021-10-27 10:03:19 +08:00
Lin
4767245285
tidy: 将c2cDecoders switch化 #2
2021-10-27 09:38:30 +08:00
Lin
7a6c0df081
tidy: 将c2cDecoders switch化
2021-10-27 09:35:23 +08:00
wdvxdr
80e2d83dab
fix: only read protobuf on known sub-type
...
Fixes Mrs4s/go-cqhttp#1120
2021-10-21 18:01:33 +08:00
Mrs4s
0ef4c01861
fix: c2c image url error
2021-10-20 22:55:01 +08:00
Mrs4s
a0b4b2a4e0
fix: ConnectionQualityTest panic
2021-10-19 22:37:49 +08:00
wdvxdr
3b85d69fd3
dep: use github.com/klauspost/compress
2021-10-16 22:11:21 +08:00
github-actions[bot]
010e34c378
ci(chore): Fix stylings
2021-10-16 08:13:31 +00:00
Mrs4s
6570d10dc4
feat: connection quality test.
2021-10-16 16:12:33 +08:00
Mrs4s
6e4bbb9e42
fix: nil pointer deference on HttpGetBytes.
2021-10-15 11:34:55 +08:00
Mrs4s
2309d511bb
fix: minimum packet length check.
2021-10-14 21:46:20 +08:00
Mrs4s
d2c218e92b
fix: panic with invalid packet length.
2021-10-14 21:44:48 +08:00
wdvxdr
a3eacd706b
feat: add GroupID field in reply message
2021-10-11 21:02:17 +08:00
wdvxdr
2cdb7407f9
clean: remove unused method
2021-10-05 23:33:39 +08:00
Ink33
dff336b05a
style: fix typo ( #183 )
2021-09-28 22:30:29 +08:00
Mrs4s
0238b2382b
fix: dynamic packet decode.
2021-09-16 19:31:36 +08:00
Mrs4s
e1502ecb48
Merge branch 'master' of github.com:/Mrs4s/MiraiGo
2021-09-16 17:52:46 +08:00
Mrs4s
e4b4faf39b
feat: DeleteUnidirectionalFriend.
2021-09-16 17:52:21 +08:00
github-actions[bot]
f70f9df5e4
ci(chore): Fix stylings
2021-09-16 07:33:23 +00:00
Mrs4s
3b6d4a6671
feat: GetUnidirectionalFriendList.
2021-09-16 15:32:39 +08:00
Mrs4s
59288fc4dc
add: image biz type support.
2021-09-06 13:12:04 +08:00
wdvxdr
fd9a6657fa
drop dep jsoniter&reflect2.
...
for smaller binary size.
2021-08-25 16:16:08 +08:00
wdvxdr
38916542a3
style: run go fmt ./...
2021-08-19 22:27:22 +08:00
wdvxdr
7bed7a3657
jce: optimize JceWriter_WriteMap.
...
name old time/op new time/op delta
JceWriter_WriteMap-8 4.09µs ± 3% 2.44µs ± 1% -40.39% (p=0.000 n=10+8)
name old speed new speed delta
JceWriter_WriteMap-8 22.8MB/s ± 3% 38.2MB/s ± 1% +67.73% (p=0.000 n=10+8)
name old alloc/op new alloc/op delta
JceWriter_WriteMap-8 2.34kB ± 0% 1.30kB ± 0% -44.37% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
JceWriter_WriteMap-8 52.0 ± 0% 30.0 ± 0% -42.31% (p=0.000 n=10+10)
2021-08-17 17:06:00 +08:00
wdvxdr
53ac47950c
jce: optimize readByte.
...
name old time/op new time/op delta
JceReader_ReadSlice-8 271µs ± 2% 228µs ± 7% -15.97% (p=0.000 n=9+10)
RequestDataVersion2_ReadFrom-8 4.57µs ± 6% 4.08µs ± 2% -10.74% (p=0.000 n=10+10)
name old speed new speed delta
JceReader_ReadSlice-8 77.6MB/s ± 2% 92.5MB/s ± 7% +19.14% (p=0.000 n=9+10)
RequestDataVersion2_ReadFrom-8 20.4MB/s ± 6% 22.8MB/s ± 2% +11.92% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
JceReader_ReadSlice-8 73.4kB ± 0% 65.3kB ± 0% -10.96% (p=0.000 n=9+6)
RequestDataVersion2_ReadFrom-8 2.64kB ± 0% 2.59kB ± 0% -1.93% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
JceReader_ReadSlice-8 6.02k ± 0% 3.01k ± 0% -49.96% (p=0.000 n=10+10)
RequestDataVersion2_ReadFrom-8 67.0 ± 0% 46.0 ± 0% -31.34% (p=0.000 n=10+10)
2021-08-17 16:32:16 +08:00
wdvxdr
0ca0c6ea45
jce: readHead return non-ptr.
...
avoid escape.
name old time/op new time/op delta
JceReader_ReadSlice-8 469µs ± 1% 238µs ± 2% -49.40% (p=0.000 n=8+9)
RequestDataVersion2_ReadFrom-8 5.72µs ± 5% 4.12µs ± 4% -28.04% (p=0.000 n=9+10)
name old speed new speed delta
JceReader_ReadSlice-8 44.8MB/s ± 1% 88.6MB/s ± 2% +97.66% (p=0.000 n=8+9)
RequestDataVersion2_ReadFrom-8 16.3MB/s ± 6% 22.6MB/s ± 4% +38.89% (p=0.000 n=9+10)
name old alloc/op new alloc/op delta
JceReader_ReadSlice-8 266kB ± 0% 73kB ± 0% -72.40% (p=0.000 n=8+7)
RequestDataVersion2_ReadFrom-8 3.74kB ± 0% 2.64kB ± 0% -29.49% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
JceReader_ReadSlice-8 18.0k ± 0% 6.0k ± 0% -66.66% (p=0.000 n=10+10)
RequestDataVersion2_ReadFrom-8 136 ± 0% 67 ± 0% -50.74% (p=0.000 n=10+10)
2021-08-17 12:01:45 +08:00
Mrs4s
028326bb67
add: long message upload log.
2021-08-16 20:48:38 +08:00
Mrs4s
fcf135ac88
add: long message upload log.
2021-08-16 20:45:47 +08:00
wdvxdr
bebbc7f33b
fix(conn): fix deadlock.
...
Fixes : #179
2021-08-15 20:38:19 +08:00
wdvxdr
b8399fa706
clean(client): use new ReadBytes rather than ReadAny.
...
use rsc.io/rf tool:
rf '
ex {
import "github.com/Mrs4s/MiraiGo/binary/jce"
var reader *jce.JceReader
var tag int
reader.ReadAny(tag).([]byte) -> reader.ReadBytes(tag)
}
'
2021-08-13 15:48:20 +08:00
wdvxdr
ad174508ff
clean(jce): use new ReadBytes rather than ReadAny.
...
use rsc.io/rf tool:
rf '
ex {
var reader *JceReader
var tag int
reader.ReadAny(tag).([]byte) -> reader.ReadBytes(tag)
}
'
2021-08-13 15:35:26 +08:00
wdvxdr
1abbeb148a
feat(jce): new api *JceReader.ReadBytes.
2021-08-13 15:29:07 +08:00
wdvxdr
3ed9b8d698
clean(jce): remove ReadMapF.
2021-08-12 23:28:21 +08:00
wdvxdr
9814f5295d
refactor(jce): use ReadMap & remove ReadMapF.
...
name old time/op new time/op delta
RequestDataVersion2_ReadFrom-8 5.58µs ± 1% 5.78µs ± 2% +3.64% (p=0.000 n=9+9)
name old speed new speed delta
RequestDataVersion2_ReadFrom-8 16.7MB/s ± 1% 16.1MB/s ± 2% -3.52% (p=0.000 n=9+9)
name old alloc/op new alloc/op delta
RequestDataVersion2_ReadFrom-8 5.40kB ± 0% 3.74kB ± 0% -30.67% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
RequestDataVersion2_ReadFrom-8 147 ± 0% 136 ± 0% -7.48% (p=0.000 n=10+10)
2021-08-12 23:24:58 +08:00
wdvxdr
aa72b4b730
ci: enable go test.
2021-08-12 20:49:10 +08:00
wdvxdr
f4fca58809
feat(jce): optimize ReadSlice performance.
...
name old time/op new time/op delta
JceReader_ReadSlice-8 1.09ms ± 7% 0.52ms ± 1% -52.48% (p=0.000 n=10+10)
name old speed new speed delta
JceReader_ReadSlice-8 19.4MB/s ± 7% 40.8MB/s ± 1% +110.25% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
JceReader_ReadSlice-8 594kB ± 1% 266kB ± 0% -55.22% (p=0.000 n=9+9)
name old allocs/op new allocs/op delta
JceReader_ReadSlice-8 22.6k ± 0% 18.0k ± 0% -19.98% (p=0.000 n=10+10)
2021-08-12 20:45:45 +08:00
moyrne
8a3d449b7d
Read bytes panic ( #177 )
...
* 修复 QQClint 中 netLoop c.TCP.ReadBytes 由于 conn 被设置为 nil 导致的空指针错误
Fixes : #171
2021-08-11 17:39:38 +08:00
wdvxdr
6614d2383a
fix: friend poke self.
2021-08-10 15:08:36 +08:00
Mrs4s
08b19e92ef
fix: special title update.
2021-08-09 06:10:11 +08:00
github-actions[bot]
0893585b28
ci(chore): Fix stylings
2021-08-08 22:03:38 +00:00
Mrs4s
afa6db17ab
feat: MemberSpecialTitleUpdatedEvent.
2021-08-09 06:02:57 +08:00
wdvxdr
1d900b302d
feat: group member shut up timestamp.
...
Fixes : #174
2021-08-07 16:43:13 +08:00
wdvxdr
cb396f0f56
refactor(message): ForwardMessage don't impl IMessageElement interface
...
use ForwardMessage to upload and get the ForwardElement.
2021-08-03 15:36:20 +08:00
wdvxdr
feb482e0e3
switch errgroup.
2021-07-31 22:30:19 +08:00
wdvxdr
624a7e4101
feat: upload waiter.
2021-07-29 19:22:18 +08:00
wdvxdr
1d68826cef
fix: group digest struct field.
2021-07-26 18:31:04 +08:00
wdvxdr
cd9830b977
fix: data race in netLoop.
2021-07-24 20:13:18 +08:00
wdvxdr
4e350e6b2a
refresh skey before getCSRFToken
2021-07-22 23:38:22 +08:00
wdvxdr
ddf3476b30
fix(client): send on closed channel
2021-07-20 21:39:43 +08:00