[macruby-changes] [MacRuby/MacRuby] 480973: close the files which used inside of IO#copy_strem...
noreply at github.com
noreply at github.com
Fri May 6 06:10:18 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: 480973d8b9c950c5faf8e1570023cc75e9073002
https://github.com/MacRuby/MacRuby/commit/480973d8b9c950c5faf8e1570023cc75e9073002
Author: Watson <watson1978 at 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
}}}
More information about the macruby-changes
mailing list