35 points · by willvarfar · 15y ago · 28 comments
The project died, but I'm glad I get to share the a basic version with some http test code now.
I admit this is the second time I've tried to show this off here today; I posted earlier but it got lost when no-one was watching :(
#ifdef __cplusplus
extern "C" {
#endifWindows porters frequently have to do this to deal with the fact Microsoft still refuses to produce a C compiler, and instead just does double duty on their existing C++ compiler.
Nginx is not tornado in c. Its not about complex custom logic, its about rules redirects and caching.
http://trac.nginx.org/nginx/browser/nginx/trunk/src/http/ngx...
if buf[i:i+4] == "POST":
the JIT automatically turns that into a MOVL + CMP + JMP. The magic of high level languages :)I'm curious how close to the limit of the underlying poll technology we're getting, because it seems like everyone is converging in roughly the same area, in an order-of-magnitude sense.
I also find myself wondering about the implications of these artificial benchmarks and the stuff Zed discussed here: http://sheddingbikes.com/posts/1280829388.html