Skip to content

Commit 53a694f

Browse files
authored
feat: add a cache to service_type_name (#1211)
1 parent cbca88c commit 53a694f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/zeroconf/_utils/name.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
)
3636

3737

38+
@lru_cache(maxsize=512)
3839
def service_type_name(type_: str, *, strict: bool = True) -> str: # pylint: disable=too-many-branches
3940
"""
4041
Validate a fully qualified service name, instance or subtype. [rfc6763]

0 commit comments

Comments
 (0)