Better way of automatically searching alternatives

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Wisp
Posts: 218
Joined: 2003-04-01 15:58

Better way of automatically searching alternatives

Post by Wisp » 2003-06-27 11:51

There seem to be some problems with the current way of automatically searching for alternatives (also see this topic)
So i thought out a better way to search for alternatives

This is how it should work

1. Search the hub every 15 minutes or so for users with free slots who have queued files
2. Make a list (in the background) of the search results, ordered by who responsed first
3. Download the file which is first in the list, if the file doesn't start in about 10 sec, go to the next result


Is this possible to make?

jbyrd
Posts: 255
Joined: 2003-05-10 14:26
Location: no-la-usa-earth

Post by jbyrd » 2003-06-27 12:18

1. Search the hub every 15 minutes or so for users with free slots who have queued files


This would put an enormous strain on the hub. This type of frequent searching for a hub with 1000 people would be an additional 66 searches per minute than normal. That is why the current method only searches for files that have "no users online".

2. Make a list (in the background) of the search results, ordered by who responsed first
3. Download the file which is first in the list, if the file doesn't start in about 10 sec, go to the next result


The list of first responses is not the same as the fastest uploaders, because the first pinged are not necessarilly the fastest connections, if that's what you're looking for in the search. :)

Wisp
Posts: 218
Joined: 2003-04-01 15:58

Post by Wisp » 2003-06-28 00:14

jbyrd wrote:This would put an enormous strain on the hub. This type of frequent searching for a hub with 1000 people would be an additional 66 searches per minute than normal. That is why the current method only searches for files that have "no users online".

Ok make it 30 minutes or so, it was just an example
The list of first responses is not the same as the fastest uploaders, because the first pinged are not necessarilly the fastest connections, if that's what you're looking for in the search. :)

I know but you have a big chance of getting the fastest user

jbyrd
Posts: 255
Joined: 2003-05-10 14:26
Location: no-la-usa-earth

Post by jbyrd » 2003-06-28 06:28

I know but you have a big chance of getting the fastest user


Not really. You have the greatest chance of getting someone that is close to you. That's all that can be guaranteed.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Re: Better way of automatically searching alternatives

Post by GargoyleMT » 2003-07-01 17:27

Wisp wrote:There seem to be some problems with the current way of automatically searching for alternatives (also see this topic)
So i thought out a better way to search for alternatives


Hold on a second. How is alternate searching broken, in your eyes? Second, which of your changes address that?

I don't see much of a change from the current system, other than that you want some sort of connect-timeout-rotate-sources option.

Wisp
Posts: 218
Joined: 2003-04-01 15:58

Re: Better way of automatically searching alternatives

Post by Wisp » 2003-07-01 20:25

GargoyleMT wrote:I don't see much of a change from the current system, other than that you want some sort of connect-timeout-rotate-sources option.

In the way I suggested it tries to download the files one by one, in the order which mostly gives the fastest download

jbyrd
Posts: 255
Joined: 2003-05-10 14:26
Location: no-la-usa-earth

Post by jbyrd » 2003-07-02 12:25

In the way I suggested it tries to download the files one by one, in the order which mostly gives the fastest download


Ugh. For the last time, there is no correlation between an uploader's ping and his upload speed! This method is totally blind. :roll:


Actually, it's in the DC++ FAQ. There is a link below for your convenience:
http://dcplusplus.sourceforge.net/faq/faq.php?display=faq&faqnr=24&catnr=3&prog=1&lang=en&onlynewfaq=13

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Re: Better way of automatically searching alternatives

Post by GargoyleMT » 2003-07-04 14:42

Wisp wrote:In the way I suggested it tries to download the files one by one, in the order which mostly gives the fastest download


Oh, so that was the only change from the DC++ standard way?

Okay.

What you're looking for seems to be nearly identical, function wise, to some other feature requests. Specifically, people have asked for a "minimum download speed", below which souces would be dropped. Presumably, if you rotated around all the souces and none met your speed, DC++ would remember which one was fastest, and use it instead. This is really what you seem to be looking for... no?

Wisp
Posts: 218
Joined: 2003-04-01 15:58

Post by Wisp » 2003-07-12 15:33

jbyrd wrote:
In the way I suggested it tries to download the files one by one, in the order which mostly gives the fastest download


Ugh. For the last time, there is no correlation between an uploader's ping and his upload speed! This method is totally blind. :roll:

i said mostly
when i search something and i download the first one, it is in most cases the fastest in the list

Wisp
Posts: 218
Joined: 2003-04-01 15:58

Re: Better way of automatically searching alternatives

Post by Wisp » 2003-07-12 15:35

GargoyleMT wrote:Oh, so that was the only change from the DC++ standard way?

Okay.

Well at this time the function nearly works because he tries to download all things at the same time, so when it will download one by one, it is a huge improvement (simple but effective)
What you're looking for seems to be nearly identical, function wise, to some other feature requests. Specifically, people have asked for a "minimum download speed", below which souces would be dropped. Presumably, if you rotated around all the souces and none met your speed, DC++ would remember which one was fastest, and use it instead. This is really what you seem to be looking for... no?

no

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Re: Better way of automatically searching alternatives

Post by GargoyleMT » 2003-07-19 17:38

Wisp wrote:
This is really what you seem to be looking for... no?

no

Thanks for the furher explanation!!

Moses
Posts: 1
Joined: 2003-07-26 13:58

Get file list

Post by Moses » 2003-07-26 14:11

When I browse some user files (Get file list) I want all his files that match files in my queue to be added as a source...

When a 500mb file is stripped down to 50 10mb rar files I want to be able to search for firstfile.r01 and then do a "Get file list" on some user that also has the file and I want all the other rXX files to be added to the queue as well...

This behavior isn't found in the newest release v0.261 (afaik)

Best Regards / Moses

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 19:37

Re: Get file list

Post by TheParanoidOne » 2003-07-26 21:20

Moses wrote:When I browse some user files (Get file list) I want all his files that match files in my queue to be added as a source...

I suggest you investigate the "Match Queue" button in the file list window.
The world is coming to an end. Please log off.

DC++ Guide | Words

Who is online

Users browsing this forum: Google [Bot] and 0 guests