On 1/18/12 10:54 PM, William Stein wrote:
On Wed, Jan 18, 2012 at 8:51 PM, Volker Braun<vbraun.n...@gmail.com>  wrote:
My Java client for the single cell server that is at the core of the Android
app pretty consistently gets a reply in about 1s. And I have ping times of
about 150ms. Here is the log for a sample session for "1+1":

Very interesting!  So the key thing is that I'm using @interact; in
particular, this is my test:

@interact
def f(n=(1..10)):
     print n*n

When I actually "interact" with the @interact, it is very slow.  In
fact, just doing 1+1 feels pretty fast to me.  So I'm reporting a bug
which is that interacts are slow.     Other things aren't necessarily.


I looked at it, and realized we were doing something very silly. Normally, when a response comes back from the server, we fall back in our polling to 2 seconds. This slow polling wasn't getting reset when an interact control was updated, so interact controls effectively had a polling interval of 2 seconds.

I've fixed it now, and decreased the normal polling interval to 250ms (from 400ms) to match sagenb. Can you try it again?

Thanks,

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to