[Python-bugs-list] [ python-Bugs-780807 ] time.strptime() 1,200 times slower in python2.3

SourceForge.net noreply@sourceforge.net
Thu, 31 Jul 2003 05:17:26 -0700


Bugs item #780807, was opened at 2003-07-31 12:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=780807&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Malte John (drmalte)
Assigned to: Nobody/Anonymous (nobody)
Summary: time.strptime() 1,200 times slower in python2.3

Initial Comment:
time.strptime() ist about 1,200 (onethousand and
twohundred) times slower in 2.3 than in 2.2! (1m:48.45s
vs. 0.09s) This is caused by the pure python
implementation. 

Fix:
I simply repaced the function time_strptime(PyObject
*self, PyObject *args) from
Python-2.3/Modules/timemodule.c with the function from
python 2.2. 
Maybe 'configure' should check for existence of the
strptime() function on the target system and use it, if
available?

Regards,
Malte

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=780807&group_id=5470