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.
1 parent b46b9b7 commit 6287568Copy full SHA for 6287568
src/main/java/org/truffleruby/core/module/ModuleNodes.java
@@ -1716,7 +1716,8 @@ protected RubyNode coerceToBoolean(RubyNode inherit) {
1716
return BooleanCastWithDefaultNodeGen.create(true, inherit);
1717
}
1718
1719
- // TODO (pitr-ch 30-Mar-2016): cache lookup
+ // NOTE(norswap): We considered caching the lookup here, but determined that the resulting complexity
1720
+ // increase in LookupMethodNode wasn't worth it, as it would slow down the more common cases.
1721
1722
@Specialization(guards = "inherit")
1723
protected boolean isMethodDefinedInherit(RubyModule module, String name, boolean inherit) {
0 commit comments