```
feat(common/socket): 增加批量读取数量以提升性能 将ServerOption中的batchRead值从10调整为30,以提高网络I/O处理效率。 ```
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user