[ruby-cvs:54654] normal:r47506 (trunk): time.c: DATA_PTR is never NULL

normal at ruby-lang.org normal at ruby-lang.org
Wed Sep 10 15:01:38 JST 2014


normal	2014-09-10 15:01:36 +0900 (Wed, 10 Sep 2014)

  New Revision: 47506

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

  Log:
    time.c: DATA_PTR is never NULL
    
    * time.c (time_mark): remove NULL check
      (time_memsize): ditto
      (time_free): remove, use RUBY_TYPED_DEFAULT_FREE instead
      [Feature #10219]
    
    Tiny improvement on my old Phenom II X4 945 system:
    $ ruby --disable=gems -e '6000000.times { Time.now }'
    before: 2.51user 0.00system 0:02.51elapsed 100%CPU
     after: 2.45user 0.00system 0:02.45elapsed 100%CPU

  Modified files:
    trunk/ChangeLog
    trunk/time.c


More information about the ruby-cvs mailing list