Re: strptime() in _strptime.py vs lib-dynload/time.so

2007-12-18 Thread Gabriel Genellina
En Tue, 18 Dec 2007 04:45:25 -0300, <[EMAIL PROTECTED]> escribió: > On Dec 17, 8:01 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Mon, 17 Dec 2007 01:53:24 -0300, <[EMAIL PROTECTED]> escribió: >> >> > actually, the C-version of strptime() is also getting called: >> > 577650.96

Re: strptime() in _strptime.py vs lib-dynload/time.so

2007-12-17 Thread igor . tatarinov
On Dec 17, 8:01 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 17 Dec 2007 01:53:24 -0300, <[EMAIL PROTECTED]> escribió: > > > On Dec 16, 8:47 pm, [EMAIL PROTECTED] wrote: > >>ncalls tottime percall cumtime percall filename:lineno(function) > >> 577656.0200.000 1

Re: strptime() in _strptime.py vs lib-dynload/time.so

2007-12-17 Thread Gabriel Genellina
En Mon, 17 Dec 2007 01:53:24 -0300, <[EMAIL PROTECTED]> escribió: > On Dec 16, 8:47 pm, [EMAIL PROTECTED] wrote: >>ncalls tottime percall cumtime percall filename:lineno(function) >> 577656.0200.000 12.9700.000 >> /usr/lib64/python2.4/_strptime.py:273(strptime) >> ... >

Re: strptime() in _strptime.py vs lib-dynload/time.so

2007-12-16 Thread igor . tatarinov
On Dec 16, 8:47 pm, [EMAIL PROTECTED] wrote: >ncalls tottime percall cumtime percall filename:lineno(function) > 577656.0200.000 12.9700.000 > /usr/lib64/python2.4/_strptime.py:273(strptime) > ... actually, the C-version of strptime() is also getting called: 57765

strptime() in _strptime.py vs lib-dynload/time.so

2007-12-16 Thread igor . tatarinov
It looks like there are two implementation of strptime() (why?) and the one that's used by default is the Python version in _strptime.py Unfortunately, it's pretty slow and takes up a big chunk of my code's execution time. Is there a way to use the C version instead (is there a C version in time.s