Issue #6218 has been reported by Glass_saga (Masaki Matsushita).

----------------------------------------
Feature #6218: struct.c???rb_struct_s_members_m()???ゃ?????
https://bugs.ruby-lang.org/issues/6218

Author: Glass_saga (Masaki Matsushita)
Status: Open
Priority: Normal
Assignee: 
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/