[ruby-cvs:51301] tmm1:r44156 (trunk): object.c: use RCLASS_M_TBL_WRAPPER for equality checks

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Fri Dec 13 08:19:04 JST 2013


tmm1	2013-12-13 08:19:02 +0900 (Fri, 13 Dec 2013)

  New Revision: 44156

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

  Log:
    object.c: use RCLASS_M_TBL_WRAPPER for equality checks
    
    * class.c (include_modules_at): use RCLASS_M_TBL_WRAPPER for
      equality checks. this avoids an unnecessary deference inside a tight
      loop, fixing a performance regression from r43973.
    * object.c (rb_obj_is_kind_of): ditto.
    * object.c (rb_class_inherited_p): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/class.c
    trunk/object.c


More information about the ruby-cvs mailing list