[ruby-cvs:54334] normal:r47186 (trunk): rb_{thread, context, fiber}_struct: trivial packing

normal at ruby-lang.org normal at ruby-lang.org
Fri Aug 15 09:25:35 JST 2014


normal	2014-08-15 09:25:34 +0900 (Fri, 15 Aug 2014)

  New Revision: 47186

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

  Log:
    rb_{thread,context,fiber}_struct: trivial packing
    
    * vm_core.h (rb_thread_struct): reorder to pack
    * cont.c (rb_context_struct, rb_fiber_struct): ditto
      On x86-64, these changes reduces:
      rb_thread_struct to 1000 bytes (from 1016)
      rb_context_struct to 1288 bytes (from 1312)
      rb_fiber_struct to 2272 bytes (from 2304)

  Modified files:
    trunk/ChangeLog
    trunk/cont.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list