Re:Show HN: Hellepoll is a blazingly-fast async HTTP server ...
by tewks on Thursday October 27, 2011 @06:40PM
(#3165958)
I'm curious as to why the author hasn't referenced nginx, which is written also event based (epoll/kqueue) and written in C.
[ Parent
| on HN ]
Re:Show HN: Hellepoll is a blazingly-fast async HTTP server ...
by willvarfar on Thursday October 27, 2011 @07:26PM
(#3166091)
I've used nginx a lot. So I guess that's why I don't see the overlap.
Nginx is not tornado in c. Its not about complex custom logic, its about rules redirects and caching.
Re:Show HN: Hellepoll is a blazingly-fast async HTTP server ...
by givan on Thursday October 27, 2011 @07:01PM
(#3166010)
Probably because is much slower than nginx, C++ adds extra "fat" that nginx (writen in C) doesn't have.
Re:Show HN: Hellepoll is a blazingly-fast async HTTP server ...
by sigil on Thursday October 27, 2011 @07:09PM
(#3166037)
Not sure about C++ overhead there. C++ often edges out C in the alioth benchmarks. More to the point, I highly doubt the author's parser ("parser") in http.cpp is faster than the one in nginx, which really is a thing of beauty.
http://trac.nginx.org/nginx/browser/nginx/trunk/src/http/ngx...
Re:Show HN: Hellepoll is a blazingly-fast async HTTP server ...
by kingkilr on Thursday October 27, 2011 @10:20PM
(#3166675)
I really love the trick for efficiently reading 4 chars and checking them out of a string. I like it so much I've been working towards making it happen automatically on PyPy so if you write something like:
if buf[i:i+4] == "POST":
the JIT automatically turns that into a MOVL + CMP + JMP. The magic of high level languages :)
Re:Show HN: Hellepoll is a blazingly-fast async HTTP server ...
by swah on Thursday October 27, 2011 @07:13PM
(#3166052)
This is so verbose, it must have been rewritten for performance so many times :)