PDA

View Full Version : Some headstart on a little Python project


krypto_wizard
February 11th, 2006, 12:29 PM
I am trying to write a code which has 10,000 nodes and they mimic a Bit torrent like file sharing mechanism.

I am not using threads but just a standalone kind of program which has to deal with lot of data. I personally thought that this program won't make much of a difference in python (or C for that matter).

Any suggestions to write such kind of programs. Its kinda class project and I have been assigned to simulate a BitTorrent like file sharing mechanism where a server has a full copy and then 10000 users come in the swarm. I have to simulate such enviroment. I can assume certain data for upload and download speed for nodes. And finaly I have to present data such mean download time, share ratio of nodes etc.

All your help is greatly appreciated.

Thanks

gord
February 11th, 2006, 01:46 PM
the offical bittorrent site has a nice explanation of how bittorrent works n stuff, non-blocking sockets are a must and i wouldn't use python if i were you, c/c++, allthough iv not had to use python for extreamly large applications, apart from within a scalable wrapper with caching and such (such as django within apache)

Lord Illidan
February 11th, 2006, 01:51 PM
Python will be extremely slow...

krypto_wizard
February 11th, 2006, 02:52 PM
Why will it be extremely slow ? Any comparison metric you can give.

Thanks

Python will be extremely slow...