Send Go team as a patch?
:+1: :+1:
Along the same lines, why does this not adhere to the same interface is net/http? Perhaps I misread the documentation, but at least ListenAndServe has a different interface.
I agree, seemed cumbersome to have to assign handlers. I would like it to follow more or less the net/http library like this https://gist.github.com/tristanwietsma/8444cf3cb5a1ac496203
@sybrandy true, deal breaker
See the FAQ for more information.
FYI, I tried optimizing net/http before starting fasthttp. About 50% of memory allocations per request were shaved, but this didn't give significant performance gain. So I gave up and started fasthttp :)
Most helpful comment
FYI, I tried optimizing net/http before starting fasthttp. About 50% of memory allocations per request were shaved, but this didn't give significant performance gain. So I gave up and started fasthttp :)