io_splice 4.3.0 - cleanups and compatibility fixes
[ruby_io_splice.git] / examples / splice-cp.rb
blob8141e518ef2667e3aec31e5c61de0c93d28e848a
1 #!/usr/bin/env ruby
2 # -*- encoding: binary -*-
3 # This example is no longer valid, IO.copy_stream is faster in Ruby 2.2+
4 # since it uses sendfile directly, which now allows direct file-to-file
5 # copying (on Linux only) with fewer syscalls than splice.