Python / C: small runtime difference?

Tim Peters tim.one at comcast.net
Fri Sep 12 19:23:56 CEST 2003


[Martin Schneider]
> I chose a simple bubblesort because I wanted to compare the
> performance of handcoded Python with handcoded C. I know that the
> internal sort() routine of Python will beat the living daylights out
> of my bubblesort :-)

Hey, I'm not proud -- if it turns out your bubblesort runs faster, let me
know and I'll try to make an adaptive bubblesort out of it <wink>.

python's-list.sort()-implementations-have-advanced-by-staring-at-
    useless-ideas-until-they-give-up-ly y'rs  - tim






More information about the Python-list mailing list