ruby-changes:28299
From: naruse <ko1@a...>
Date: Thu, 18 Apr 2013 22:56:19 +0900 (JST)
Subject: [ruby-changes:28299] naruse:r40351 (trunk): iseq: reduce array allocations for simple sequences
naruse 2013-04-18 22:55:59 +0900 (Thu, 18 Apr 2013) New Revision: 40351 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40351 Log: iseq: reduce array allocations for simple sequences * compile.c (iseq_add_mark_object): Use new rb_iseq_add_mark_object(). * insns.def (setinlinecache): Ditto. * iseq.c (rb_iseq_add_mark_object): New function to allocate iseq->mark_ary on demand. [Bug #8142] * iseq.h (rb_iseq_add_mark_object): Ditto. * iseq.c (prepare_iseq_build): Avoid allocating mark_ary until needed. * iseq.c (rb_iseq_build_for_ruby2cext): Ditto. Modified files: trunk/ChangeLog Index: ChangeLog =================================================================== --- ChangeLog (revision 40350) +++ ChangeLog (revision 40351) @@ -1,3 +1,18 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Apr 17 04:09:19 2013 Aman Gupta <ruby@t...> + + * compile.c (iseq_add_mark_object): Use new rb_iseq_add_mark_object(). + + * insns.def (setinlinecache): Ditto. + + * iseq.c (rb_iseq_add_mark_object): New function to allocate + iseq->mark_ary on demand. [Bug #8142] + + * iseq.h (rb_iseq_add_mark_object): Ditto. + + * iseq.c (prepare_iseq_build): Avoid allocating mark_ary until needed. + + * iseq.c (rb_iseq_build_for_ruby2cext): Ditto. + Wed Apr 17 19:45:27 2013 Aman Gupta <tmm1@r...> * iseq.c (iseq_location_setup): re-use existing string when iseq has -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/