From b63bdeaad287812ddd944d3c1396db80d90025be Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Tue, 27 Feb 2024 08:18:06 +0100 Subject: [PATCH] Memoize .metadata._filter_recipe_text Signed-off-by: Marcel Bargull --- conda_build/metadata.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conda_build/metadata.py b/conda_build/metadata.py index 01f3367d03..c4355af34e 100644 --- a/conda_build/metadata.py +++ b/conda_build/metadata.py @@ -1015,6 +1015,7 @@ def get_updated_output_dict_from_reparsed_metadata(original_dict, new_outputs): return output_d +@lru_cache(maxsize=200) def _filter_recipe_text(text, extract_pattern=None): if extract_pattern: match = re.search(extract_pattern, text, flags=re.MULTILINE | re.DOTALL)