Simplify and speed up timestamp parsing#3063
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.06%
==========================================
Files ? 66
Lines ? 14472
Branches ? 0
==========================================
Hits ? 13468
Misses ? 1004
Partials ? 0 ☔ 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 |
This comment was marked as outdated.
This comment was marked as outdated.
|
(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? |
0631762 to
a5866ba
Compare
|
Rebased post conflicts from #3206... |
|
I decided to just add the optimization commit I'd mentioned in a previous comment in here, because why not – after all this PR has been brewing for over a year so might as well. Benchmark results for parsing timestamps found in the test suite comparing 05538ce and this PR, showing a mean OPS improvement of 16.75×:
|
5db11ba to
3166a23
Compare
53 ops/s vs 2.8 ops/s
|
Hi @nateprewitt, rebased this post your #3533. Could you please take a look? 🥺 |
As mentioned in #2972 (comment):
_parse_timestamp_with_tzinfo()already attempts to dofromtimestampparsing; 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.