Skip to content

Commit 6287568

Browse files
author
Nicolas Laurent
committed
remove todo, add note
1 parent b46b9b7 commit 6287568

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/truffleruby/core/module/ModuleNodes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,8 @@ protected RubyNode coerceToBoolean(RubyNode inherit) {
17161716
return BooleanCastWithDefaultNodeGen.create(true, inherit);
17171717
}
17181718

1719-
// TODO (pitr-ch 30-Mar-2016): cache lookup
1719+
// 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.
17201721

17211722
@Specialization(guards = "inherit")
17221723
protected boolean isMethodDefinedInherit(RubyModule module, String name, boolean inherit) {

0 commit comments

Comments
 (0)