Skip to content

Commit f63e040

Browse files
authored
Merge pull request #3263 from brandongc/develop
[enhancement] Improve performance of module backend when detecting module conflicts
2 parents 48448aa + 8fb23ab commit f63e040

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(maxsize=128)
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)