130,000 IPC Calls per Second in Python
rfoo is a new Python RPC package which can do 130,000 IPC calls per second on a regular PC. It includes a fast serialization module called rfoo.marsh which extends the Python built in marshal module by eliminating serialization of code objects and protecting against bad input. The result is a safe to use ultra fast serializer. Go get it at http://code.google.com/p/rfoo/
Interface of rfoo.marsh
rfoo.marsh.dumps(expression) rfoo.marsh.loads(binary_string)
Serve RPC method to clients
class MyHandler(rfoo.BaseHandler):
def echo(self, str):
return str
rfoo.InetServer(MyHandler).start(port=50000)
Call method on RPC server
c = rfoo.InetConnection().connect(port=50000)
rfoo.Proxy(c).echo('Hello, world!')
Winpdb - A Platform Independent Python Debugger