From 53a694f60e675ae0560e727be6b721b401c2b68f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 3 Aug 2023 13:41:35 -1000 Subject: [PATCH] feat: add a cache to service_type_name (#1211) --- src/zeroconf/_utils/name.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zeroconf/_utils/name.py b/src/zeroconf/_utils/name.py index 7fa667a1..adccb3e5 100644 --- a/src/zeroconf/_utils/name.py +++ b/src/zeroconf/_utils/name.py @@ -35,6 +35,7 @@ ) +@lru_cache(maxsize=512) def service_type_name(type_: str, *, strict: bool = True) -> str: # pylint: disable=too-many-branches """ Validate a fully qualified service name, instance or subtype. [rfc6763]