I'm not sure what you meant, but it feels like the __setitem__ would take a big hit.
What if get_namespaced did the deep copy? As far as I see, this and set_namespaced are only used by the plugins to set their configuration. That should minimise the impact.
|