How does auto-search prioritize?

Asked by Carlos

I think my one-liners got it covered. I enjoy the auto-search feature of DC++ (which works fine), but the other day I was watching it's events in the system log and it stroke me that it doesn't go by alphabetic order when picking its items from queue, but in some other(?) manner. Or is it just - like us old QBasic kids used to refer to it - a randomize timer that selects an (any) item from the queue? In simple, is it all random? Or some other "order" that I havn't figured out, ie. datestamp of queue-adds, alphabetic order on TTH sums, etc etc..? Or like my first hypotheses - stated above - pure random shot?

I stated my question over at a client-specific forum and got an answer and pretty quick got the answer that he/she "thought it to be supposed to do random". However, since I'm a character of some compulsion disorders I just can't find it in me to relax comfy-domfy with that "he thought"-answer. So, I figured I'd give the real headquarter a shot for some answers.

A simple "It's all random!" (note the exclamation mark, leaving no room for "thoughts" :^) will most certainly fulfill my urge for De facto.

PS. I will presume that the answer I will be given will reach out also to the Strong~ family (StrongDC++, ApexDC++, AirDC++).

Great regards~
Carlos.

Question information

Language:
English Edit question
Status:
Solved
For:
DC++ Edit question
Assignee:
No assignee Edit question
Solved by:
eMTee
Solved:
Last query:
Last reply:
Revision history for this message
Best eMTee (realprogger) said :
#1

The answer of 'random' is valid. This is a comment line of the source code which - besides the actual code - proves it :

 // We pick a start position at random, hoping that we will find something to search for...

Start position means start position in the download queue of course. To know what happens next (what condition need a picked candidate to actually be searched for) read this blog post : http://dcpp.wordpress.com/2006/03/09/autosearch/

PS. No we can't give you answers for Strong~ family, etc... because this is a support place for DC++ and we don't follow what other client developers do. The best answer I can give here is that probably they didn't changed this, but you can be absolutely sure only if you ask them in their respective support forums.

Revision history for this message
Carlos (gewan) said :
#2

Your answer could not have been any clearer.
A big thanks.
Now I can find comfort.
Case closed!

Revision history for this message
Carlos (gewan) said :
#3

Thanks eMTee, that solved my question.