-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Simplify timestamp parsing #3063
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #3063 +/- ##
========================================
Coverage 93.14% 93.15%
========================================
Files 66 66
Lines 14237 14219 -18
========================================
- Hits 13261 13245 -16
+ Misses 976 974 -2 ☔ View full report in Codecov by Sentry. |
@nateprewitt I have some tests you seem to have added for #1987 failing with this
Might I be right in guessing the |
... to follow up on my last comment: one way to find out! (Remaining) tests seem to pass fine, and this is about 28% faster for a benchmark of common values passed in to this function. (I have another commit – for a future PR – to stack on this that will further increase parsing performance for common cases about 23x compared to |
(Gentle review nudge, @nateprewitt? 😄) |
Another nudge, @nateprewitt... I noticed you'd said
in #3062 – anything I can do to help things along? |
Sorry for Yet Another Ping, @nateprewitt 😅 |
Another ping... @nateprewitt? |
Rebased post conflicts from #3206... |
As mentioned in #2972 (comment):
_parse_timestamp_with_tzinfo()
already attempts to dofromtimestamp
parsing; not much point in doing that work twice for timestamp-esque strings (and failing in the cases described in #2972).In the subsequent commits, this PR also cleans up remaining seemingly Useless Use of
tzlocal
.