globally refactor Range handling for responses
commite21939d776673b2f8887adf7a5c64812b7d2e98e
authorEric Wong <normalperson@yhbt.net>
Thu, 30 Dec 2010 08:33:15 +0000 (30 08:33 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 5 Jan 2011 00:37:42 +0000 (4 16:37 -0800)
tree48aa3a71201e770758bd09b325c3f2704411af7f
parent4a76da1833922c74e147be5def9bfe04fd0c16a2
globally refactor Range handling for responses

Rack::Utils::HeaderHash is still very expensive in Rack 1.2,
especially for simple things that we want to run as fast as
possible with minimal interference.  HeaderHash is unnecessary
for most requests that do not send Content-Range in responses.
26 files changed:
lib/rainbows.rb
lib/rainbows/base.rb
lib/rainbows/client.rb
lib/rainbows/coolio.rb
lib/rainbows/coolio/client.rb
lib/rainbows/ev_core.rb
lib/rainbows/event_machine.rb
lib/rainbows/event_machine/client.rb
lib/rainbows/fiber/base.rb
lib/rainbows/fiber/body.rb
lib/rainbows/fiber/coolio/server.rb
lib/rainbows/process_client.rb
lib/rainbows/rack_input.rb
lib/rainbows/response.rb
lib/rainbows/response/body.rb [deleted file]
lib/rainbows/response/range.rb [deleted file]
lib/rainbows/revactor.rb
lib/rainbows/revactor/client.rb [new file with mode: 0644]
lib/rainbows/revactor/client/methods.rb [moved from lib/rainbows/revactor/body.rb with 66% similarity]
lib/rainbows/revactor/client/tee_socket.rb [moved from lib/rainbows/revactor/tee_socket.rb with 96% similarity]
lib/rainbows/thread_pool.rb
lib/rainbows/thread_spawn.rb
lib/rainbows/writer_thread_pool.rb
lib/rainbows/writer_thread_pool/client.rb
lib/rainbows/writer_thread_spawn.rb
lib/rainbows/writer_thread_spawn/client.rb