Skip to content

Commit

Permalink
Memoize .metadata._filter_recipe_text
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Mar 21, 2024
1 parent fda44cd commit 7f01076
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f01076

Please sign in to comment.