[Numpy-discussion] String sort

Charles R Harris charlesr.harris at gmail.com
Tue Feb 12 14:07:06 EST 2008


On Feb 12, 2008 11:53 AM, Bruce Southey <bsouthey at gmail.com> wrote:

> Hi,
>
> I have a Opteron 248 (2.66GHz) that with gcc 4.1.0 (SUSE10.1?) that gives
> C qsort with C style compare: 0.650000
> C qsort with Python style compare: 0.640000
> NumPy newqsort: 0.360000
>
> I did notice that -O3 was essential to get the performance gain as -O2
> gave:
> C qsort with C style compare: 0.690000
> C qsort with Python style compare: 0.700000
> NumPy newqsort: 0.610000
>

Try -O2 -finline-functions, it should come in somewhere between -O2 and -O3

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080212/04e111a0/attachment.html>


More information about the NumPy-Discussion mailing list