Commit c82757b9 authored by Raphaël Bleuse's avatar Raphaël Bleuse

Reduce memory footprint of optimization logic

parent 70cf0773
Pipeline #8768 passed with stage
in 19 seconds
......@@ -56,6 +56,8 @@ def _pairwise(iterable):
class _OptimizerState:
"""Internal state of the optimization logic to compute crosslevels."""
__slots__ = ('position', 'crossings', )
def __init__(self, position, crossings):
self.position = position # current position of strands
self.crossings = crossings # remaining crossings
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment