diff options
author | John Hawthorn <john@hawthorn.email> | 2019-12-12 15:47:59 -0800 |
---|---|---|
committer | Aaron Patterson <tenderlove@github.com> | 2019-12-17 09:19:00 -0800 |
commit | 254477248cde5bf82c4f256dca05b13d01c9774c (patch) | |
tree | 84e9676862da8fb830ef89f18dd5907d0d4c5508 /rubystub.c | |
parent | 9245462499e7c3216a468aadccdc11e69de8cd54 (diff) |
Skip optimized method check for most method IDs
Previously every time a method was defined on a module, we would
recursively walk all subclasses to see if the module was included in a
class which the VM optimizes for (such as Integer#+).
For most method definitions we can tell immediately that this won't be
the case based on the method's name. To do this we just keep a hash with
method IDs of optimized methods and if our new method isn't in that list
we don't need to check subclasses at all.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2752
Diffstat (limited to 'rubystub.c')
0 files changed, 0 insertions, 0 deletions