1
0
forked from VimPlug/jedi

deepcopy removed at one place, tests being 12s faster (from 20s to 8s)

This commit is contained in:
David Halter
2012-07-12 15:10:57 +02:00
parent 12970f80ae
commit cc081cdb3c
2 changed files with 34 additions and 1 deletions

View File

@@ -245,7 +245,8 @@ class InstanceElement(object):
# Copy and modify the array.
origin = self.var.get_assignment_calls()
origin.parent_stmt, temp = None, origin.parent_stmt
new = copy.deepcopy(origin)
# Delete parent, because it isn't used anymore.
new = helpers.fast_parent_copy(origin)
origin.parent_stmt = temp
new.parent_stmt = InstanceElement(self.instance, temp)
return new