-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: make indicator_name a cache_readonly #48040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -753,6 +744,17 @@ def _maybe_drop_cross_column( | |||
if cross_col is not None: | |||
del result[cross_col] | |||
|
|||
@cache_readonly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside, maybe we can use
from functools import cache (PY3.9)/ lru_cache
@property
@lru_cache(maxsize=None)/@cache
def _indicator_name(...)
in the future instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specific to here or replace cache_readonly in general?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To replace cache_readonly
in general. Could gain some nice benefits like cache clearing and thread safety (if I'm viewing the implementation correctly)
Thanks @jbrockmendel |
Too much going on in
__init__
ATM.