[ruby-cvs:54104] normal:r46958 (trunk): struct iseq_compile_data_storage: 16 bytes (from 32) overhead

normal at ruby-lang.org normal at ruby-lang.org
Sat Jul 26 16:57:45 JST 2014


normal	2014-07-26 16:57:44 +0900 (Sat, 26 Jul 2014)

  New Revision: 46958

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

  Log:
    struct iseq_compile_data_storage: 16 bytes (from 32) overhead
    
    This reduces the iseq_compile_data_storage header from 32 to 16
    bytes on 64-bit systems.
    
    pos and size fields cannot exceed 32-bit sizes due to stack size
    limits.  Using a flexible array for the buffer also saves us 8
    bytes of pointer overhead.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/iseq.c
    trunk/iseq.h


More information about the ruby-cvs mailing list