diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-27 17:20:16 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-27 17:20:16 -0800 |
commit | 145185b76dafebe5574e6a3eefd3276555c72016 (patch) | |
tree | 37915e4829c6faff3163b253cfe4c8a6f95953d7 | |
parent | 2dcde57f3ea10b916a9601eb139394a02bcede87 (diff) | |
download | rainbows-145185b76dafebe5574e6a3eefd3276555c72016.tar.gz |
It can noticeably improve performance if available. ref: http://rubyforge.org/pipermail/rev-talk/2009-November/000116.html
-rw-r--r-- | lib/rainbows/rev/core.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb index 472182a..eaff2c6 100644 --- a/lib/rainbows/rev/core.rb +++ b/lib/rainbows/rev/core.rb @@ -1,6 +1,8 @@ # -*- encoding: binary -*- require 'rev' Rev::VERSION >= '0.3.0' or abort 'rev >= 0.3.0 is required' +if IO::Buffer.respond_to?(:default_node_size=) + IO::Buffer.default_node_size = Rev::IO::INPUT_SIZE require 'rainbows/rev/heartbeat' module Rainbows |