Skip to content

RecursionError for deepcopy with 400x400 matching task #139

Description

@james016

I bumped into RecursionError in the deepcopy reproduced by

import sys
from matching.games import StableMarriage

# fix by enlarging the size of recursionlimit
# sys.setrecursionlimit(10000)

num_x = 400
num_y = 400

x2y = {x:list(range(num_y)) for x in range(num_x)}
y2x = x2y

game = StableMarriage.create_from_dictionaries(x2y, y2x)

It cased by the deepcopy of players.
By setting recursionlimit to a higher value can reduce the problem in this case with 400x400 matching task, I found. But it may be not reduced fundamentally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions