valyala/fasthttp

client: set response body as net.Buffers

Open

#1,161 opened on Nov 15, 2021

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

Repository metrics

Stars
 (21,741 stars)
PR merge metrics
 (Avg merge 1d 11h) (34 merged PRs in 30d)

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