nodes: micro-optimize hash(node)

Turns out it's called alot, and saving the function call makes it
faster.
This commit is contained in:
Ran Benita 2020-04-30 16:01:18 +03:00
parent fcc473ab1c
commit 5702c86f4c
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class Node(metaclass=NodeMeta):
return self._nodeid
def __hash__(self):
return hash(self.nodeid)
return hash(self._nodeid)
def setup(self):
pass