⬅︎ Back to Rust > Go > Python ...to parse millions of dates in CSV files
I wonder what would happen if you manually parsed the year, month, and day and used simple arithmetic instead of using strptime and timedeltas.
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.
Comment
I wonder what would happen if you manually parsed the year, month, and day and used simple arithmetic instead of using strptime and timedeltas.
Replies
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.