Project

General

Profile

« Previous | Next » 

Revision 7d1f48b5

Added by matz (Yukihiro Matsumoto) over 16 years ago

  • struct.c (struct_ivar_get): new function to avoid repeated
    rb_intern() calls.

  • struct.c (rb_struct_iv_get): use struct_ivar_get()

  • struct.c (num_members): ditto.

  • struct.c (rb_struct_s_members): ditto.

  • class.c (rb_singleton_class): cache symbol to reduce calls to
    rb_intern().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e