[ruby-cvs:66879] nobu:r59701 (trunk): io.c: shrink read buffer

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Aug 31 17:21:46 JST 2017


nobu	2017-08-31 17:21:46 +0900 (Thu, 31 Aug 2017)

  New Revision: 59701

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59701

  Log:
    io.c: shrink read buffer
    
    * io.c (io_setstrbuf): return true if the buffer is newly created.
    
    * io.c (io_set_read_length): shrink the read buffer if it is a new
      object and is too large.  [ruby-core:81370] [Bug #13597]

  Modified files:
    trunk/io.c
    trunk/test/-ext-/string/test_capacity.rb


More information about the ruby-cvs mailing list