From fd4ee32882f8c59b085f097dbb2d143c9086a255 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 2 Aug 2010 07:55:57 +0000 Subject: [PATCH] Ruby io_splice 2.2.0 - updates for Linux 2.6.35 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 --- README | 3 +++ lib/io/splice.rb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README b/README index f89db4c..0b33ab5 100644 --- a/README +++ b/README @@ -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 -- 2.11.4.GIT