Closed jfennick closed 4 months ago
Looks like PRs should be opened against the dev
branch?
Thank you for the suggestion. I agree that the deepcopy operation was unnecessary (on the namespace's cache and other parts).
Your suggested edit, however, still uses deepcopy. I would suggest the following:
# Do not reuse the namespace object, making an identical copy
ns = self.add_namespace(Namespace(namespace.prefix, namespace.uri))
and we can also remove the deepcopy import that is no longer required.
@jfennick Merged. Thanks a lot!
No problem! Any chance for a point release soon? We have some users that are currently affected by this.
No promise, but I will try to make a release this weekend.
@jfennick I've made a release. Sorry for the delay.
Deepcopy'ing the cache is unnecessary and is causing massive performance problems for certain uses cases (specifically, large directories). This change fixes the performance problems.