This commit is contained in:
@@ -12,7 +12,7 @@ go tool pprof -http :8081 "http://125.208.20.223:54612/debug/debug/pprof/profile
|
||||
go tool pprof -http :8081 "http://127.0.0.1:9909/debug/pprof/profile"
|
||||
|
||||
go tool pprof -http :8081 "http://202.189.15.67:62672/debug/pprof/profile"
|
||||
|
||||
go tool pprof -http :8081 "http://8.162.8.203:9909/debug/pprof//profile"
|
||||
详情查看 [文档](./docs)
|
||||
|
||||
- [战斗](./docs/battle.md)
|
||||
|
||||
@@ -36,7 +36,7 @@ func (s *Server) Boot(serverid, port uint16) error {
|
||||
//gnet.WithReadBufferCap(1024*64), // 读缓冲区64KB(根据业务调整,默认太小)
|
||||
// gnet.WithWriteBufferCap(1024*64), // 写缓冲区64KB
|
||||
|
||||
gnet.WithLockOSThread(true), // 绑定goroutine到OS线程(减少上下文切换)
|
||||
//gnet.WithLockOSThread(true), // 绑定goroutine到OS线程(减少上下文切换)
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user