Python / C: small runtime difference?

Martin Schneider martin.schneider at illusion-factory.de
Fri Sep 12 13:36:54 EDT 2003


> Also, using a better sort algorithm should improve performance
> dramatically (i.e. compare your code versus the builtin sort() function
> of lists).

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 :-)

Thanks
Martin






More information about the Python-list mailing list