
I Rewrote python-dateutil in Rust — Even a Naive Port Is Up to 94x Faster
TL;DR — pip install python-dateutil-rs , change one import, get 5x–94x faster date parsing, recurrence rules, and timezone lookups. It's a line-by-line Rust port via PyO3 — no code changes required. GitHub | PyPI python-dateutil Is Everywhere — and It's Pure Python python-dateutil is one of the most depended-on packages in the Python ecosystem. With 300M+ monthly downloads on PyPI , it powers date parsing, relative deltas, recurrence rules, and timezone handling across countless applications. But it's written in pure Python. For hot paths — parsing thousands of ISO timestamps in a data pipeline, expanding recurring calendar events, computing relative dates in a loop — that means leaving significant performance on the table. What if you could make it up to 94x faster without changing a single line of your application code? pip install python-dateutil-rs That's python-dateutil-rs — a Rust-backed drop-in replacement I built using PyO3 and maturin. Same API, same behavior, dramatically fas
Continue reading on Dev.to
Opens in a new tab



