Does anyone know if the standard C library function qsort is pre-optimized? I am assuming the object code was compiled using, say, gcc with a -O option.
The reason I am asking is because I have to compare processing times for my homegrown quicksort function to the built-in qsort (which may or may not actually use quicksort). If I don't optimize I run 2-3 times slower than qsort, if I optimize fully, I run ~.7 seconds faster.