diff options
author | Eric Wong <e@80x24.org> | 2019-01-02 20:37:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-02 20:37:38 +0000 |
commit | 44baf906e73c13577186e3135be4356b33b8be43 (patch) | |
tree | ea17d5da3893b176c637927388659b526c44bb8e /test/test_sink_pipe_size.rb | |
parent | 8f8140f68ff2daab5feeb134d1f4e77f4329fa0f (diff) | |
download | dtas-44baf906e73c13577186e3135be4356b33b8be43.tar.gz |
Eliminate loading of the io_splice RubyGem to reduce memory overhead. Extra DSOs are wasteful and io_splice is being phased oiut for sleepy_penguin, which encapsulates more Linux-specific functionality anyways. cf. https://udrepper.livejournal.com/8790.html
Diffstat (limited to 'test/test_sink_pipe_size.rb')
-rw-r--r-- | test/test_sink_pipe_size.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_sink_pipe_size.rb b/test/test_sink_pipe_size.rb index 645084a..1ca3108 100644 --- a/test/test_sink_pipe_size.rb +++ b/test/test_sink_pipe_size.rb @@ -2,7 +2,7 @@ # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> # frozen_string_literal: true begin - require 'io/splice' + require 'sleepy_penguin' require './test/player_integration' class TestSinkPipeSizeIntegration < Testcase include PlayerIntegration @@ -14,7 +14,7 @@ begin s.req_ok("sink ed default pipe_size=0x10000") s.req_ok("sink ed default pipe_size=") s.req_ok("sink ed default pipe_size=4096") - end if IO.method_defined?(:pipe_size=) + end if SleepyPenguin.const_defined?(:F_SETPIPE_SZ) end rescue LoadError end |