We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d278130 commit 2a9a234Copy full SHA for 2a9a234
1 file changed
uid2_client/input_util.py
@@ -22,6 +22,10 @@ def is_phone_number_normalized(phone_number):
22
return min_phone_number_digits <= total_digits <= max_phone_number_digits
23
24
25
+# Accessing an enum member is ~3x slower than accessing a non-enum member in Python 3.11.
26
+# This was improved in Python 3.12 but there's still a performance overhead (~44% slower).
27
+# That's why this class isn't an enum.
28
+# https://github.com/python/cpython/issues/93910#issuecomment-1165503032
29
class EmailParsingState:
30
Starting = 1
31
Pre = 2
0 commit comments