Language Shootout
Jeff Shannon
jeff at ccvcorp.com
Wed Jul 11 11:49:49 EDT 2001
"David C. Ullrich" wrote:
> On Wed, 11 Jul 2001 01:47:30 GMT, bokr at accessone.com (Bengt Richter)
> wrote:
>
> >[18:47] C:\pywk\fib>strL.py str 10L**20899
> >str took 13.601617 seconds
> >
> >[18:47] C:\pywk\fib>strL.py strL 10L**20899
> >strL took 1.044989 seconds
> >
> >Recursion rides again ;-)
>
> Recursive or not, the idea that we can write
> a replacement for str that's faster is very
> curious.
How much of this difference in speed, though, is because strL()
is a special purpose integer->string conversion, where the
standard str() is a general-purpose anything->string conversion?
Jeff Shannon
Technician/Programmer
Credit International
More information about the Python-list
mailing list