Issue #6218 has been updated by mame (Yusuke Endoh).

Assignee changed from Glass_saga (Masaki Matsushita) to mame (Yusuke Endoh)

Glass_saga ?????????潟???????水????????????<????c??????????????????????????帥?????????с??
?????????????腱?????????c?<???????障?????

-- 
Yusuke Endoh <mame / tsg.ne.jp>
----------------------------------------
Feature #6218: struct.c???rb_struct_s_members_m()???ゃ?????
https://bugs.ruby-lang.org/issues/6218#change-26747

Author: Glass_saga (Masaki Matsushita)
Status: Assigned
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: 
Target version: 


茵?????∽?違?с??rb_struct_s_members()??у?????Array????絎鴻??while??????1荀?膣??????ゆ?違?????Array???push?????????障????????
?????????rb_ary_dup()??ф????障??????????????с??????с??????????????

?????????若????潟?剛?????<?????????????????障?????

require 'benchmark'

sym = :a
s = Struct.new(*Array.new(100){ sym = sym.succ })

Benchmark.bm do |x|
  x.report do
    1000.times { s.members }
  end
end

篁ヤ?????潟?若?????絎?茵?????????????????篁ヤ????????????????障????????

trunk(r35158):
       user     system      total        real
   0.000000   0.000000   0.000000 (  0.003188)

proposal:
       user     system      total        real
   0.000000   0.000000   0.000000 (  0.000688)

patch???羞私???????障?????


-- 
http://bugs.ruby-lang.org/