Re: Very slow broacasting server
"Christian O'Reilly" <[email protected]> Tue, 19 Nov 2013 00:33:35 -0500
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAKpGTkbhrr1cM84YTArfALzsZvX=kvmd7BGC26Bsp5dOx0_NfQ@mail.gmail.com> |
Thanks for your answer Irmen.
Here are some test results. On linux, it is OK with both Python 2.7 and
3.2. On Windows it is NOT OK with Python 2.7.5. (I did not tried 3.x).
The Pyro line where the delay occurs is "Pyro4.Proxy("PYRONAME:dummy")".
For now, it looks like an issue on Pyro's wrapper of windows sockets...
I've not tried your other suggestions right now because I still need to
figure how to do it right.
Christian
2013/11/16 Irmen de Jong <[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
> _______________________________________________
> Pyro-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyro-core
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core