diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-08-02 07:55:57 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-08-02 07:55:57 +0000 |
commit | fd4ee32882f8c59b085f097dbb2d143c9086a255 (patch) | |
tree | 60f1ba7840e9b5662372e2456060f8c10a8c4fc5 | |
parent | a6a3ba543c3b9069437ade7741c694ce3da2e884 (diff) | |
download | ruby_io_splice-fd4ee32882f8c59b085f097dbb2d143c9086a255.tar.gz |
This release adds IO#pipe_size and IO#pipe_size= accessors for resizing the kernel pipe buffer under Linux 2.6.35+. This functionality may be used to either reduce memory footprint or make large copies with fewer method dispatches and system calls. These methods are only available when run under Linux 2.6.35 or later (but always built, so there's no need to recompile this library after upgrading your kernel). http://bogomips.org/ruby_io_splice/doc/IO.html#method-i-pipe_size http://bogomips.org/ruby_io_splice/doc/IO.html#method-i-pipe_size%3D
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | lib/io/splice.rb | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -23,6 +23,9 @@ buffer. * Fully-documented library API and {examples}[http://bogomips.org/ruby_io_splice/examples/] +* Adds helpful IO#pipe_size and IO#pipe_size= accessor methods for + resizing the pipe buffer in Linux 2.6.35 or later. + == Install Operating system support for the splice(2), tee(2) and vmsplice(2) diff --git a/lib/io/splice.rb b/lib/io/splice.rb index d60a24d..2a21751 100644 --- a/lib/io/splice.rb +++ b/lib/io/splice.rb @@ -5,8 +5,8 @@ class IO module Splice - # the version of IO::Splice, currently 2.1.0 - VERSION = '2.1.0' + # the version of IO::Splice, currently 2.2.0 + VERSION = '2.2.0' # The maximum default capacity of the pipe in bytes. # Under stock Linux, this is 65536 bytes as of 2.6.11, and 4096 before |