Lloyd Bryant wrote:
> If somebody has an exceptionally large number of 
> files, then the sort could potentially add a substantial amount of time to 
> the total required for a rescan (note: on my headless box, which is an 
> obsolete P2-300, processing 7600 files, having this option active adds 
> about 15 seconds to the time required for a rescan.  Not too bad....)

I don't know what g_slist_sort() does but it's potentially very slow,
maybe O(n^2). Otherwise I don't see why it would take 15 seconds to
sort a few items by an integer key. Please try to map the list onto
an array, use qsort and convert it back to a list. Maybe we don't
need that list anyway.

-- 
Christian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to