Prev: duda sobre nuevo metodo
Next: How to use rb_enc_str_new() to create a String with UTF-8encoding?
From: Roger Pack on 2 Dec 2009 11:37 > ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32] > "2 40.188834" > > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > "2 0.087" > > That is about 5x slower write and 500x read operation. Times are the > same if I do: > f = File.new('out.file','r') > c = f.read > f.close > P.S. > Where can I officaly report a Ruby bug? Looks like this bug is http://redmine.ruby-lang.org/issues/show/1332 Can you try with mode 'rb' and is it fast then? -r -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: duda sobre nuevo metodo Next: How to use rb_enc_str_new() to create a String with UTF-8encoding? |