Skip to content

Commit 86dd5e5

Browse files
🚴 perf(Four): Exploit other._node.
1 parent c6c53d7 commit 86dd5e5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/1-digit/4-Four.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,7 @@ Four.prototype._nodes_with_two = function (M, other) {
9595

9696
Four.prototype._nodes_with_three = function (M, other) {
9797
assert(other instanceof Three);
98-
return [
99-
node3(M, other.a, other.b, other.c),
100-
node2(M, this.a, this.b),
101-
node2(M, this.c, this.d),
102-
];
98+
return [other._node(M), node2(M, this.a, this.b), node2(M, this.c, this.d)];
10399
};
104100

105101
Four.prototype._nodes_with_four = function (M, other) {

0 commit comments

Comments
 (0)