http_request: micro optimizations
commit2db0a9fbaf40b338752701bc8acb26894a9fbbfc
authorEric Wong <normalperson@yhbt.net>
Fri, 24 Apr 2009 02:57:00 +0000 (23 19:57 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 24 Apr 2009 03:06:48 +0000 (23 20:06 -0700)
tree1cf816e842cb25898f4322929ddbe7e834e2e5c3
parent5af2bbcf8ce2f531f61c1cfb0e829828e35db6c0
http_request: micro optimizations

This leads to a ~10% improvement in test/benchmark/request.rb
Some of these changes will need to be reworked for
multi-threaded servers (Mongrel); but Unicorn will always be
single-threaded.
lib/unicorn/http_request.rb