From f3dee6ad5277cb68f4b03b66ecaab0f389b33f0c Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Thu, 9 Nov 2023 00:12:37 +0100 Subject: [PATCH] cache importlib_metadata_package_distributions --- ragna/core/_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ragna/core/_utils.py b/ragna/core/_utils.py index ac88c876..9c20184e 100644 --- a/ragna/core/_utils.py +++ b/ragna/core/_utils.py @@ -17,6 +17,10 @@ from ragna._compat import importlib_metadata_package_distributions +importlib_metadata_package_distributions = functools.cache( + importlib_metadata_package_distributions +) + class RagnaExceptionHttpDetail(enum.Enum): EVENT = enum.auto()