6 May
2011
6 May
'11
1:10 p.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 480973d8b9c950c5faf8e1570023cc75e9073002 https://github.com/MacRuby/MacRuby/commit/480973d8b9c950c5faf8e1570023cc75e9... Author: Watson <watson1978@gmail.com> Date: 2011-05-06 (Fri, 06 May 2011) Changed paths: M io.c Log Message: ----------- close the files which used inside of IO#copy_strem. and, use the copyfile() only at the time of file copying. Test Script: {{{ File.open("/tmp/a", "w") { |f| str = "x" * 200 f.write str } 100000.times { IO.copy_stream("/tmp/a", "/tmp/b") } puts :ok }}}