News for hackers. Stuff that matters.
Re:Go Web Examples by mreithub on Friday February 10, 2017 @02:37AM (#13613849)
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

Re:Go Web Examples by tscs37 on Friday February 10, 2017 @03:46AM (#13614106)
The 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.

Re:Go Web Examples by daenney on Friday February 10, 2017 @06:51AM (#13614741)
If you want HTTP/2 support Chi[0] can probably help. It's plenty snappy too.

[0]: https://github.com/pressly/chi

Re:Go Web Examples by sagichmal on Friday February 10, 2017 @11:23AM (#13616485)
I don't recommend it; it doesn't actually implement HTTP, and the stdlib package net/http is extremely fast on its own.
Re:Go Web Examples by grey-area on Friday February 10, 2017 @02:57AM (#13613916)
It doesn't support http2.