strptime() in _strptime.py vs lib-dynload/time.so
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon Dec 17 23:01:43 EST 2007
En Mon, 17 Dec 2007 01:53:24 -0300, <igor.tatarinov at gmail.com> escribió:
> On Dec 16, 8:47 pm, igor.tatari... at gmail.com wrote:
>> ncalls tottime percall cumtime percall filename:lineno(function)
>> 57765 6.020 0.000 12.970 0.000
>> /usr/lib64/python2.4/_strptime.py:273(strptime)
>> ...
>
> actually, the C-version of strptime() is also getting called:
> 57765 0.960 0.000 13.940 0.000 :0(strptime)
>
> that's pretty confusing. Does the Python version call the C-version
> (or the other way around)?
The other way. The strptime function inside the time module (timemodule.c)
just calls the strptime function written in Python (_strptime.py).
I have no idea why it's so slow in your case.
--
Gabriel Genellina
More information about the Python-list
mailing list