Comment

Peter Bengtsson

That's what one of the alternative solutions here https://www.peterbe.com/plog/fastest-python-datetime-parser does. The C based extension was still much faster.

Parent comment

W

I wonder what would happen if you manually parsed the year, month, and day and used simple arithmetic instead of using strptime and timedeltas.