Skip to content

Commit b68ea2d

Browse files
author
Vasileios Karakasis
committed
Do not deep copy the partition and the environment
- This gives us a 8% performance benefit in total. Here is the experiment: ``` ./bin/reframe -c unittests/resources/checks/hellocheck.py -n HelloTest \ --repeat=1000 -l ```
1 parent 8c30881 commit b68ea2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reframe/frontend/executors/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class TestCase:
3737
def __init__(self, check, partition, environ):
3838
self._check_orig = check
3939
self._check = copy.deepcopy(check)
40-
self._partition = copy.deepcopy(partition)
41-
self._environ = copy.deepcopy(environ)
40+
self._partition = partition
41+
self._environ = environ
4242
self._check._case = weakref.ref(self)
4343
self._deps = []
4444

0 commit comments

Comments
 (0)