Allenxuxu / gev

🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers.
MIT License
1.73k stars 194 forks source link

windows 下cpu、内存占用问题 #142

Open xiet16 opened 1 year ago

xiet16 commented 1 year ago

image

windows 下每开启一个tcp,cpu占用就增加了15%,查看了一下火焰图,是(c *Connection) doPendingFunc() 这个方法里加了锁的原因,麻烦帮忙看一下是怎么回事