strptime performance

John Roth newsgroups at jhrothjr.com
Mon Nov 3 19:10:17 EST 2003


"George Trojan" <george.trojan at noaa.gov> wrote in message
news:bo6oaf$vfq$1 at news.nems.noaa.gov...
> Is time.strptime() intrinsically slow and should be avoided whenever
> possible? I have the following code in my application:

According to the "what's new in Python" for 2.3, the strptime
implementation was switched from a lightweight wrapper
around the frequently buggy and incompatible C library
to a portable pure Python implementation.

Yes, it's going to be a lot slower.

John Roth






More information about the Python-list mailing list