valyala/fasthttp

client: set response body as net.Buffers

Open

#1161 opened on Nov 15, 2021

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Go (21,741 stars) (1,755 forks)batch import
enhancementhelp wanted

Description

The net.Buffers internally uses writev syscall so we can write multiple chunks without concatenation in buffer. This significantly improves performance and I wondered why fasthttp doesn't use it.

Contributor guide