[Patches] [ python-Patches-483864 ] Pure python version of calendar.weekday
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 20 Nov 2001 09:51:06 -0800
Patches item #483864, was opened at 2001-11-20 09:42
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=483864&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Hye-Shik Chang (perky)
Assigned to: Nobody/Anonymous (nobody)
Summary: Pure python version of calendar.weekday
Initial Comment:
this version can handle past of 1970, and PURE.
but this is not too slower than old one.
NetBSD machine on Pentium 90MHz:
$ python wday.py 1000
Time Module: 0.641623973846
Pure Python: 0.724056005478
$ python wday.py 10000
Time Module: 6.77021896839
Pure Python: 7.34891104698
Linux machine on Pentium III 800MHz:
$ python wday.py 10000
Time Module: 0.611389994621
Pure Python: 0.833150982857
$ python wday.py 100000
Time Module: 6.12289500237
Pure Python: 8.36460494995
----------------------------------------------------------------------
>Comment By: Hye-Shik Chang (perky)
Date: 2001-11-20 09:51
Message:
Logged In: YES
user_id=55188
upper one of two patches is using if - if.
another is using and - or.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=483864&group_id=5470