3 ms·
Has anyone of you experience with the fasthttp Go library[0]? Does it keep its promise in terms of speed? (I assume real world code would spend much more time
by mreithub 10y ago
Has anyone of you experience with the fasthttp Go library[0]?
Does it keep its promise in terms of speed? (I assume real world code would spend much more time in actual business logic than their examples/benchmarks so I guess there wouldn't be as much a difference as they claim, but the idea of zero allocations intrigues me)
[0]: https://github.com/valyala/fasthttp https://github.com/valyala/fasthttp
- grey-area 10y agoIt doesn't support http2.
- tscs37 10y agoThe fasthttp library is good if you don't need to support corner cases of HTTP and you don't need HTTP/2. If that is given, yes, it's faster.
- daenney 10y agoIf you want HTTP/2 support Chi[0] can probably help. It's plenty snappy too. [0]: https://github.com/pressly/chi https://github.com/pressly/chi
- sagichmal 10y agoI don't recommend it; it doesn't actually implement HTTP, and the stdlib package net/http is extremely fast on its own.