Replies: 6 comments 3 replies
-
Of course not: The goal of methods like Anyway, |
Beta Was this translation helpful? Give feedback.
-
|
Ok, there's nothing to optimize. |
Beta Was this translation helpful? Give feedback.
-
|
Mh, anyway to make this effective I have to do in instead of |
Beta Was this translation helpful? Give feedback.
-
|
Released |
Beta Was this translation helpful? Give feedback.
-
My apologize. You are very right. Furthermore, I checked the behavior of the C extension, and it does not do a deepcopy. So there's an inconsistency between the C and the py implementations. I'll fix it removing the |
Beta Was this translation helpful? Give feedback.
-
|
Released |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been going through the code and stumbled upon
deepcopycalls infrozendict'sset,delete, etc. methods.Why are they there? Isn't
copyenough to add/remove a key?Calling
deepcopyfor updates has obvious performance issues (it's slow to copy every object in the dict) so in my project I removed these calls via overriding the corresponding methods. But maybe I'm missing something?Beta Was this translation helpful? Give feedback.
All reactions