From 7f01076d1784df24d2684158e65446470af11fb8 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 7400d5e0a7..71cbfe6b5d 100644 --- a/conda_build/metadata.py +++ b/conda_build/metadata.py @@ -1014,6 +1014,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)