Skip to content

Commit

Permalink
Merge pull request #3263 from brandongc/develop
Browse files Browse the repository at this point in the history
[enhancement] Improve performance of module backend when detecting module conflicts
  • Loading branch information
vkarak authored Sep 23, 2024
2 parents 48448aa + 8fb23ab commit f63e040
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reframe/core/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#

import abc
import functools
import os
import re
from collections import OrderedDict
Expand Down Expand Up @@ -1030,6 +1031,7 @@ def available_modules(self, substr):

return ret

@functools.lru_cache(maxsize=128)
def conflicted_modules(self, module):
if module.collection:
# Conflicts have no meaning in module collection. The modules
Expand Down

0 comments on commit f63e040

Please sign in to comment.