about summary refs log tree commit homepage
path: root/lib/rainbows/rev_thread_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-09 12:03:23 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-09 12:03:23 -0800
commitb933b1607db5438e424b323c297b57c680587ed7 (patch)
tree2c714b22fe384ae7985d99af3e93c4073d517818 /lib/rainbows/rev_thread_spawn.rb
parentbf34080bf370807a2c16ba6efbfef1598fcb341d (diff)
downloadrainbows-b933b1607db5438e424b323c297b57c680587ed7.tar.gz
When reading 4K chunks, performance is dismal under 1.8
Diffstat (limited to 'lib/rainbows/rev_thread_spawn.rb')
-rw-r--r--lib/rainbows/rev_thread_spawn.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/rainbows/rev_thread_spawn.rb b/lib/rainbows/rev_thread_spawn.rb
index 4eba6d9..b8aa420 100644
--- a/lib/rainbows/rev_thread_spawn.rb
+++ b/lib/rainbows/rev_thread_spawn.rb
@@ -18,9 +18,13 @@ module Rainbows
   #
   # Caveats:
   #
-  # * TeeInput performance is terrible unless you match the
-  #   length argument of your env["rack.input"]#read calls
-  #   so that it is equal to Rev::IO::INPUT_SIZE
+  # * TeeInput performance under Ruby 1.8 is terrible unless you
+  #   match the length argument of your env["rack.input"]#read
+  #   calls so that it is greater than or equal to Rev::IO::INPUT_SIZE.
+  #   Most applications depending on Rack to do multipart POST
+  #   processing should be alright as the current Rev::IO::INPUT_SIZE
+  #   of 16384 bytes matches the read size used by
+  #   Rack::Utils::Multipart::parse_multipart.
 
   module RevThreadSpawn
     class Client < Rainbows::Rev::Client