From adbf9a03518a94932e951c231852dffc63671432 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 1 Apr 2015 23:19:32 +0000 Subject: tmpio: add writev support via kgio This will allow us to write arrays for chunked output without unnecessary data copies. --- lib/yahns/tmpio.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/yahns/tmpio.rb b/lib/yahns/tmpio.rb index f0ddd2f..d25d5e8 100644 --- a/lib/yahns/tmpio.rb +++ b/lib/yahns/tmpio.rb @@ -7,6 +7,7 @@ require 'tmpdir' # well with unlinked files. This one is much shorter, easier # to understand, and slightly faster (no delegation). class Yahns::TmpIO < File # :nodoc: + include Kgio::PipeMethods # creates and returns a new File object. The File is unlinked # immediately, switched to binary mode, and userspace output -- cgit v1.2.3-24-ge0c7