I don't see anything special with interacts in the Java client. It takes a 
little bit over 1s to get the interact prepare, and getting the update 
after changing the value (here to n=7) again takes about 1s. But when I use 
the web interface the interacts feel slower (I'd say about 3s to update 
after the slider is changed).


<< (105ms) Request to execute
>> (1182ms) Prepare interact id=2564993036234168734
SageInteract
{
   "content":{
      "content":{
         "update":{
            "n":[
               "n"
            ]
         },
         "controls":{
            "n":{
               "raw":true,
               "control_type":"slider",
               "display_value":true,
               "values":[
                  "1",
                  "2",
                  "3",
                  "4",
                  "5",
                  "6",
                  "7",
                  "8",
                  "9",
                  "10"
               ],
               "default":0,
               "range":[
                  0,
                  9
               ],
               "subtype":"discrete",
               "label":null,
               "step":1
            }
         },
         "interact_id":"2564993036234168734",
         "layout":{
            "top_center":[
               "n"
            ]
         }
      },
      "msg_type":"interact_prepare"
   },
   "parent_header":{
      "session":"0ec32ff5-51ba-4728-9ab1-d1396009dac8",
      "msg_id":"8344531d-92c7-460a-b925-0fc880eaf236"
   },
   "sequence":0,
   "msg_type":"extension",
   "output_block":null,
   "header":{
      "msg_id":"4181681696853414445"
   }
}


>> (1183ms) Stream output
SageOutput
{
   "content":{
      "name":"stdout",
      "data":"1\n"
   },
   "parent_header":{
      "session":"0ec32ff5-51ba-4728-9ab1-d1396009dac8",
      "msg_id":"8344531d-92c7-460a-b925-0fc880eaf236"
   },
   "sequence":1,
   "msg_type":"stream",
   "output_block":"2564993036234168734",
   "header":{
      "msg_id":"3390922363263553954"
   }
}


>> (1186ms) Execute reply status = ok
<< (1188ms) Request to execute
>> (1761ms) Stream output
SageOutput
{
   "content":{
      "name":"stdout",
      "data":"64\n"
   },
   "parent_header":{
      "session":"0ec32ff5-51ba-4728-9ab1-d1396009dac8",
      "msg_id":"7f549c4e-1a01-4b20-8d7b-0785b9f79cac"
   },
   "sequence":3,
   "msg_type":"stream",
   "output_block":"2564993036234168734",
   "header":{
      "msg_id":"2790306674611809938"
   }
}


>> (1761ms) Execute reply status = ok
SageOutput
{
   "content":{
      "status":"ok"
   },
   "parent_header":{
      "session":"0ec32ff5-51ba-4728-9ab1-d1396009dac8",
      "msg_id":"7f549c4e-1a01-4b20-8d7b-0785b9f79cac"
   },
   "sequence":4,
   "msg_type":"execute_reply",
   "output_block":null,
   "header":{
      "msg_id":"4799113128681351654"
   }
}

-- 
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