An illustration of the speed advantage of Python builtinsAs a followup to my entry on the two sorts of languages, I decided to actually try
implementing the string
I actually did three versions, each with a different I benchmarked each version on various lengths of The other versions were worse, sometimes much worse; at its slowest,
the worst of the three versions was 17,554 times slower than builtin
(I was surprised by which version turned out to be the slowest, although in hindsight I shouldn't have been.) (2 comments.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |