[ruby-cvs:54030] normal:r46884 (trunk): rb_io_buffer_t: pack structure

normal at ruby-lang.org normal at ruby-lang.org
Sun Jul 20 13:19:06 JST 2014


normal	2014-07-20 13:19:06 +0900 (Sun, 20 Jul 2014)

  New Revision: 46884

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

  Log:
    rb_io_buffer_t: pack structure
    
    * include/ruby/io.h (rb_io_buffer_t): pack structure
      Reduces rb_io_t from 200 to 192 bytes, allowing rb_io_t to
      occupy one less cache line.
      [Feature #10050]
    
    n.b. this leaves a 4-byte hole after the `cbuf' field which may
    be used for future expansion.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/io.h


More information about the ruby-cvs mailing list