valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.91k stars 1.76k forks source link

Optimizing code with constantly changing request body #1604

Open ddd opened 1 year ago

ddd commented 1 year ago

redacted

erikdubbelboer commented 1 year ago

What you did look ok at a glance. Only stopSendingMessages needs to be an atomic.Bool.

The reqs/second is probably limited by the speed of the proxies or your target.