Skip to content

Commit 15ca0c7

Browse files
committed
small speed-up
1 parent 7cf5dae commit 15ca0c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

synth/syntax/program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def __init__(self, function: Program, arguments: TList[Program]):
260260
super().__init__(my_type)
261261
self.function = function
262262
self.arguments = arguments
263-
self.hash = hash(tuple([arg for arg in self.arguments] + [self.function]))
263+
self.hash = hash((self.function, *self.arguments))
264264

265265
def __pickle__(o: Program) -> Tuple: # type: ignore[override]
266266
return Function, (o.function, o.arguments) # type: ignore

0 commit comments

Comments
 (0)