mldonkey-users
[Top][All Lists]
Advanced

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

Re: [Mldonkey-users] Re: pango-20021128b


From: Pierre Etchemaite
Subject: Re: [Mldonkey-users] Re: pango-20021128b
Date: Sat, 30 Nov 2002 00:41:43 +0100

Le Fri, 29 Nov 2002 21:00:33 +0100, Sven Hartge <address@hidden>
a écrit :

> Storing and managing a queue with client-MD4s for every file in share
> might be a bit much.

Many of the uploaders are already known as sources, so all you need is add
them to the pool of list of clients, add them to the list(s) (per file list
could allow to implement some fairness between files, but it's just one way
to do it), and when a slot becomes free, scan the list(s) to find the best
client, remove it from its list and put it in upload_clients.

You don't even need to store any additional data about clients if you can
compute their respective "scores" (or "priority") when dequeueing.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]