17 Feb
2005
17 Feb
'05
11:17 p.m.
On Thu, Feb 17, 2005 at 02:51:28PM -0800, Dave Cook wrote:
On Thu, 17 Feb 2005 01:05:22 +0000, Phil Mayers
wrote: def connect(self): f = pb.PBClientFactory() reactor.connectTCP(host, port, f) f.getRootObject().addCallbacks(self.connect_ok, self.connect_fail)
Maybe I should do it the way you do here and not create the client factory until I need it rather than at the start of my application. How costly is it to create the client factories each time?
I don't honestly know - not significantly I think, looking at the code (but then "not significantly" depends on if you're talking once a second or a hundred time a second, really :o)