Connecting Tech Pros Worldwide Forums | Help | Site Map

to py or not to py ?

Newbie
 
Join Date: Jun 2006
Posts: 1
#1: Jun 27 '06
HI all
I have the following prob.
I am to write a parallel vis application .
I wud have by default used C++ for the same but somehow
thought if python cud be usefull
It is. Many things that i would otherwise have written down
already exists ... ( like built in classes for sockets , threading etc )

I would be doin the following type of tasks ..

1. sending data across the network
the data is going to be huge

2. once data has been sent i will run some vis
algos parallely on them and get the results

now one thing that i wud req. is serializing my data structures so that
they can be sent across the net.

pyton does allow this using cPickle , but it bloats the data like anythin !!!
for example a class containing 2 integers which i expect will be 8 bytes long ..
cPickle.dumps returns a string thats 86 bytes wide !!!! ( this is the binary version protocol 1 )

is there anyway to improve serialization ??

also is it actually a good idea to write high perf applications in python ?

thanks in advance

dvs dvs is offline
Newbie
 
Join Date: Jul 2006
Posts: 12
#2: Jul 20 '06

re: to py or not to py ?


try twisted
Reply