Skip to content

Commit 3d9e8b6

Browse files
committed
perf: use shallow copy for args/test_cfg in worktree mode
1 parent 0a2ec48 commit 3d9e8b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codeflash/optimization/optimizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,8 @@ def worktree_mode(self) -> Result[bool, str]:
826826
return Success(True) # noqa: FBT003
827827

828828
def mirror_paths_for_worktree_mode(self, worktree_dir: Path) -> None:
829-
original_args = copy.deepcopy(self.args)
830-
original_test_cfg = copy.deepcopy(self.test_cfg)
829+
original_args = copy.copy(self.args)
830+
original_test_cfg = copy.copy(self.test_cfg)
831831
self.original_args_and_test_cfg = (original_args, original_test_cfg)
832832

833833
original_git_root = git_root_dir()

0 commit comments

Comments
 (0)