Skip to content

Commit ce6e5a6

Browse files
Disable caching to fix crosses_parts memory leak
1 parent c55f382 commit ce6e5a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gerrychain/partition/partition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def flip(self, flips):
118118
"""
119119
return self.__class__(parent=self, flips=flips)
120120

121-
@functools.cache
121+
# @functools.cache
122122
def crosses_parts(self, edge):
123123
"""Answers the question "Does this edge cross from one part of the
124124
partition to another?

0 commit comments

Comments
 (0)