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 <marcel.bargull@udo.edu>
  • Loading branch information
mbargull authored and kenodegard committed Apr 12, 2024
1 parent 024e61d commit b63bdea
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 @@ -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)
Expand Down

0 comments on commit b63bdea

Please sign in to comment.