- 底层使用net包的Listen和Accept方法,监听端口和接收请求
- 实现了一个workerPool来处理tcp连接
- 通过sync.Pool减少对象创建和GC压力
comeonjy / fasthttp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from valyala/fasthttp
Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
License: MIT License