Menu

#513 deepcopy performance bug

open
None
major
bug
2024-04-19
2024-04-19
Harmen
No

In comments.py please change

setattr(t, a, copy.deepcopy(getattr(self, a, memo)))

to

setattr(t, a, copy.deepcopy(getattr(self, a), memo))

otherwise it runs in quadratic complexity when deepcopying something as trivial as a list

Thanks!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
OSZAR »