Commit graph

63 commits

Author SHA1 Message Date
世界
ad670bab68
Improve WriteZeroN using clear in go1.21 2023-12-24 08:03:40 +08:00
世界
c7ef05a85b
Fix buffer
Will be merged into f0be1a9e
2023-12-24 08:03:39 +08:00
世界
8b43ec8058
Add reserve support for buffer 2023-12-24 08:03:39 +08:00
世界
c17babe0ba
Merge ThreadSafeReader into ReadWaiter interface 2023-12-24 08:03:38 +08:00
H1JK
af92594d6d
Shrink buf pool range 2023-12-24 08:03:35 +08:00
H1JK
f23499eaea
Pool allocate arrays instead of slices
This is inspired by https://go-review.googlesource.com/c/net/+/539915
2023-12-24 08:03:34 +08:00
世界
d7ce998e7e
Remove legacy buffer header 2023-12-24 08:03:34 +08:00
世界
0d701cfff0
Fix buffer WriteZeroN 2023-12-08 14:54:54 +08:00
世界
c68251b6d0
Deprecate stack buffer 2023-07-03 08:21:04 +08:00
世界
d852e9c03d
Fix build on go1.21 2023-06-26 18:49:55 +08:00
世界
7662278795
Implement ByteReader for ChunkReader 2023-04-29 12:44:30 +08:00
世界
59e662e6e2
Fix panic when alloc empty buffer 2023-04-13 19:23:20 +08:00
世界
df54c89b04
Add deadline reader/conn 2023-04-09 15:02:29 +08:00
世界
ed73785ecc
Add low memory interface 2023-03-16 00:31:30 +08:00
世界
e16845727f
Improve vectorised writer 2023-03-05 13:51:48 +08:00
Hellojack
439ecb1a20
Improve buffer write string
Both []byte(string) and copy([]byte, string) are zero-alloc for this operation, but copy([]byte, string) is faster since Go supports it as a feature.
2023-01-22 16:37:56 +08:00
世界
c4e9bf11fa
Add buffer.LenMulti 2022-10-06 16:18:21 +08:00
wwqgtxx
b2828dac5f
Fix buffer overflow 2022-09-21 17:02:19 +08:00
世界
1cb3c60b47
Fix write zero 2022-09-03 09:24:13 +08:00
世界
7bfd820739
Fix copy conn final 2022-08-24 14:29:50 +08:00
世界
cee85dcd30
Fix vectorised writer 2022-08-21 22:35:31 +08:00
世界
05f9836bff
Add vectorised interface 2022-08-12 16:21:20 +08:00
世界
afbe231237
Remove unsafe linkname usages 2022-08-03 17:04:36 +08:00
世界
bc109486f1
Fix buffer read (break change) 2022-07-26 11:48:11 +08:00
世界
f00396c60e
Add buf ReadAllFrom 2022-07-06 18:38:30 +08:00
世界
849d16c37b
Add more lint 2022-06-29 12:35:43 +08:00
世界
beeeba3388
Make linter happy 2022-06-28 22:16:48 +08:00
世界
1805ecdd1a
Add golangci-lint 2022-06-28 20:50:37 +08:00
世界
a817f7084d
Fix buffer read 2022-06-28 07:46:42 +08:00
世界
c6eb392ecb
Fix alloc big buffer 2022-06-17 14:21:29 +08:00
世界
90beb46c6d
Refine format 2022-06-16 13:13:25 +08:00
世界
9d88431791
Fix async buffer usage 2022-06-16 10:19:41 +08:00
世界
ea019b3655
Fix Buffer.ReadFullFrom 2022-06-14 21:13:37 +08:00
世界
88e581292c
Update buffer ref usage 2022-06-13 13:50:24 +08:00
世界
f49cd6f979
Disable unsafe buffer in windows by default 2022-06-10 15:41:29 +08:00
世界
d8ff35654d
Rename buffered conn to cached conn 2022-06-09 17:10:54 +08:00
世界
14c6b9c89b
Return buffer in write random func 2022-06-08 17:43:35 +08:00
世界
0c4697eb72
Remove unused import 2022-06-06 13:25:17 +08:00
世界
e0f7225581
Fix disable invalidptr 2022-06-05 09:25:33 +08:00
世界
c82c144a8e
Add safe reader 2022-05-30 12:13:23 +08:00
世界
d634f5f8d1
Refine udpnat 2022-05-30 10:39:25 +08:00
世界
44702885a7
Refine buffer 2022-05-28 09:52:30 +08:00
世界
01ea424838
Cast 4in6 from reading socksaddr 2022-05-27 07:24:02 +08:00
世界
d4b1e219c0
Trim repo 2022-05-25 14:13:18 +08:00
世界
edd8b71a7c
Add writevc func 2022-05-22 09:31:34 +08:00
世界
678160313e
Check buffer overflow 2022-05-18 18:04:18 +08:00
世界
04cd76f0aa
Shadowsocks 2022 protocol change 2022-05-15 07:30:36 +08:00
世界
f17d3036cd
Fix buffer on non-linux-amd64 platforms maybe 2022-05-14 15:16:52 +08:00
世界
f1b87be6e4
Fix buffer usage 2022-05-07 17:08:57 +08:00
世界
1ca65e7b95
Refine logger 2022-05-02 11:18:46 +08:00