For python3.x, using dateutil.parser
is very slow. I measured it to be 3.25s for 1800 datetime strings. It was even slower for datetime.strptime
method (with "%z
"). Both of these tests I used list comprehension.
Are these my only options?
All other answers I found were just about converting it without regard to efficiency on large datasets, and I am looking to do large datasets of strings to datetime objects.