Skip to content

Commit a3de0cd

Browse files
committed
Cache conflicted_modules results
1 parent fee92c3 commit a3de0cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reframe/core/modules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99

1010
import abc
11+
import functools
1112
import os
1213
import re
1314
from collections import OrderedDict
@@ -1030,6 +1031,7 @@ def available_modules(self, substr):
10301031

10311032
return ret
10321033

1034+
@functools.lru_cache
10331035
def conflicted_modules(self, module):
10341036
if module.collection:
10351037
# Conflicts have no meaning in module collection. The modules

0 commit comments

Comments
 (0)