summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-06-19 21:03:15 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-06-19 21:03:15 +0000
commit38a3d79ceb157088d3da8b881aadb154813099e8 (patch)
treeab3230c27dd431693cfda4265b5e19075dd1898f /src
parent52adeec63dab9c6cab44ac1e90fb674e345cb329 (diff)
downloadbcfg2-38a3d79ceb157088d3da8b881aadb154813099e8.tar.gz
bcfg2-38a3d79ceb157088d3da8b881aadb154813099e8.tar.bz2
bcfg2-38a3d79ceb157088d3da8b881aadb154813099e8.zip
Metadata: improve resolution performance
Remove vestiages of the old .all interface; previously we needed to use copy.deepcopy to ensure that ClientMetadata consumers could not modify data structures from templates, etc. This also has the nice side effect of speeding up metadata resolution by a factor of 50 (0.5s -> 0.01s) in my repository. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5287 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/Metadata.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index c2e7a2ff2..be98d3894 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -396,8 +396,6 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
[newbundles.add(b) for b in nbundles if b not in newbundles]
[newgroups.add(g) for g in ngroups if g not in newgroups]
newcategories.update(ncategories)
- groupscopy = copy.deepcopy(self.groups)
- clientscopy = copy.deepcopy(self.clients)
return ClientMetadata(client, profile, newgroups, newbundles,
newcategories, uuid, password, self.query)