[ruby-cvs:52300] normal:r45155 (trunk): time: rearrange+pack vtm and time_object structs

normal at ruby-lang.org normal at ruby-lang.org
Mon Feb 24 12:38:14 JST 2014


normal	2014-02-24 12:38:14 +0900 (Mon, 24 Feb 2014)

  New Revision: 45155

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

  Log:
    time: rearrange+pack vtm and time_object structs
    
    struct time_object shrinks from 88 to 46 bytes on my 64-bit system.
    
    * configure.in: use -Wno-packed-bitfield-compat for GCC 4.4+
      use __attribute__((packed)) if available
    * timev.h: shrink and pack struct vtm
    * time.c: pack struct time_object and adjust/introduce helpers
      [ruby-core:60794]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/time.c
    trunk/timev.h


More information about the ruby-cvs mailing list