feat(common/socket): 增加批量读取数量以提升性能

将ServerOption中的batchRead值从10调整为30,以提高网络I/O处理效率。
```
This commit is contained in:
2025-10-31 01:46:50 +08:00
parent cccf26788e
commit f5fbfca593
2 changed files with 1 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ func NewServer(options ...Option) *Server {
workerPool: goroutine.Default(),
bufferSize: 4096, //默认缓冲区大小
multicore: true,
batchRead: 10,
batchRead: 30,
//discorse: true,
}
for _, option := range options {