Valhalla Legends Archive

Programming => General Programming => Topic started by: ioSys on July 28, 2003, 10:27 AM

Title: Winsock vs API Calls
Post by: ioSys on July 28, 2003, 10:27 AM
I wonder how much faster it would be to make the anaroch program with API calls instead of using a winsock control in it. just curious if it is some big winnings. (at leeast in the long run)  :)

(Its a program that retreives a page, filtering the data it gets and then its sending back the right request to the page again gaining experience)
Title: Re:Winsock vs API Calls
Post by: Adron on July 28, 2003, 12:29 PM
Quote from: ioSys on July 28, 2003, 10:27 AM
I wonder how much faster it would be to make the anaroch program with API calls instead of using a winsock control in it. just curious if it is some big winnings. (at leeast in the long run)  :)

(Its a program that retreives a page, filtering the data it gets and then its sending back the right request to the page again gaining experience)

You can expect an unnoticable improvement. The overhead from using a control instead of api is magnitudes smaller than the overhead of round-trip-times.

Title: Re:Winsock vs API Calls
Post by: ioSys on July 29, 2003, 10:49 AM
okey thanks! then my question got an answear.
I tried a bot made by someone else. it seemed to be made in java and it was quite much faster than the one in vb....strange i think because i thougt that vb one was quite optimal.
Title: Re:Winsock vs API Calls
Post by: Adron on July 30, 2003, 01:13 AM
Quote from: ioSys on July 29, 2003, 10:49 AM
okey thanks! then my question got an answear.
I tried a bot made by someone else. it seemed to be made in java and it was quite much faster than the one in vb....strange i think because i thougt that vb one was quite optimal.

Was it really faster or did it only seem faster? Perhaps it loaded urls blind instead of waiting for a response to the previous request?