Re: Very slow broacasting server
Irmen de Jong <[email protected]> Sat, 16 Nov 2013 12:51:23 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 16-11-2013 2:30, Christian O'Reilly wrote: > Hi, > > I have delays > 1 s on each call to my pyro objects. It might have something to do with > the broadcasting server. I described the problems in details > in http://stackoverflow.com/questions/20012750/wrapping-pyro4-name-server. I am on > Windows 7. I looked at the code for a while now and I'm wondering if it may be a bug in > Pyro or if it is just the fault of my little knowledge of Pyro's internal code. I wonder if it has something to do with this: https://github.com/irmen/Pyro4/issues/19 but that only manifests itself (on my machines) as just a 0.04 second delay, not 1 second as in your case. You've already commented on that issue there I noticed. In any case, can you try your code with Python 3.3 instead of 2.7 and see if the problem disappears? Otherwise: Have you tried running without a broadcast server (but with just a name server)? Have you tried taking DNS-lookups out of the equation by only using ip addresses in uri's (sometimes dns hostname lookups take a long time)? Can you pinpoint the line of code in Pyro where your second delay occurs? At the moment I have no time to look into your code, sorry... Irmen ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk