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

Reduce the size of ResponseHeader and RequestHeader #1826

Closed ksw2000 closed 3 months ago

ksw2000 commented 3 months ago

Replace the field bufKV whose size is 56 bytes in ResponseHeader and RequestHeader with two []byte fields only 48 bytes.

erikdubbelboer commented 3 months ago

Thanks, I didn't even realize we were using an argsKV without using any of the methods on an argsKV.