We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3378c66 + 6287568 commit e26ae04Copy full SHA for e26ae04
src/main/java/org/truffleruby/core/module/ModuleNodes.java
@@ -1773,7 +1773,8 @@ protected RubyNode coerceToBoolean(RubyNode inherit) {
1773
return BooleanCastWithDefaultNodeGen.create(true, inherit);
1774
}
1775
1776
- // TODO (pitr-ch 30-Mar-2016): cache lookup
+ // NOTE(norswap): We considered caching the lookup here, but determined that the resulting complexity
1777
+ // increase in LookupMethodNode wasn't worth it, as it would slow down the more common cases.
1778
1779
@Specialization(guards = "inherit")
1780
protected boolean isMethodDefinedInherit(RubyModule module, String name, boolean inherit) {
0 commit comments