-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BENCH: skip slowest tzlocal asvs #39995
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
@@ -30,6 +30,10 @@ def setup(self, size, tz): | |||
dti = pd.date_range("2016-01-01", periods=10, tz=tz).repeat(size // 10) | |||
self.i8data = dti.asi8 | |||
|
|||
if size == 10 ** 6 and tz is _tzs[-1]: |
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.
this seems a bit fragile, so 2 recommendations:
- let's skip tzlocal() entirely from benchmarks
- you can define a tzlocal import that we cache (might be complicated)
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.
updated to use 2.
if we ever get to cython 3.0 i think i'll be able to implement a tzlocal-equivalent in cython and this may cease to be an issue
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.
updated + greenish
Running with
-b tslibs
in master takes 141 minutes. This cuts it down to 36 minutes