Actions
Bug #13113
closedPerformance issue, const_set Module.new is too slow in Ruby 2.4
Bug #13113:
Performance issue, const_set Module.new is too slow in Ruby 2.4
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
Description
In Ruby 2.4, the following code is too slow.
In Ruby 2.4, it took 115.68 seconds to run this code.
However, in Ruby 2.3.3, it took 7.36 seconds.
And if const_set value is not Module.new, it is not slow. For example
Ruby versions
Actions