Re: A89: Re: Re: Folder List


[Prev][Next][Index][Thread]

Re: A89: Re: Re: Folder List




I was not familiar with qsort from stdlib.h, but yes, I guess it could be good
if you dont want to write your own, and doesn't have any concern about space.
Speed I do not know anything about. What algoritm do qsort use? It didn't say in
my man-pages.
But my statement still stands. with small amounts of data, there is no need for
advanced routines, and it is most probably even plain bad and stupid to use.

//Olle

Zeljko Juric wrote:
> > quite pointless to use a heavy duty routine like quicksort for such
> > small amount of data. If you have just 20-30 dataposts it will most
> > probably end up takeing more time with quicksort then with a simple
> > bubblesort or selectionsort or something.
> 
> But why not to use qsort from stdlib.h?
> 
> Zeljko Juric



Follow-Ups: References: