Sunday, February 10, 2013

Re: GWT Client MultiThreading ( Without HTML 5 WebWorkers)



On Sunday, February 10, 2013 5:00:46 PM UTC+1, jchimene wrote:
On 2/10/2013 8:56 AM, Alp Yilancioglu wrote:
> Hi,
>  Using GWT;
>  Client side multitheading is possible with websworkers
>   which is not supported in IE9 but supported ie10 ( so webworkers for
> me  is early to be used )
>  
> without using webworkers, is there a way that i could make a
> workaround solution for my case;
>  
> Recieveing XML data from comet callbacks, and parsing them at client side,
> the thing depending on the size and complexity  of the nodes and their
> child nodes searching and process the data ( Loops )  lock the browser
> some times timeouts accours.
>  
> how can i prevent those locks in browser

Assuming your client-side processing is optimized as possible (i.e.
you're using the browser to parse the XML).

FYI, Wave doesn't rely on the browser's XML support. Given Google is obsessed with performance, that makes me wonder if com.google.gwt.xml.* is the best choice. Admittedly, Wave never supported IE; but my point is: you'd better benchmark. Did you know that some browsers (Chrome IIRC) are actually faster at building things with a "detached DOM" than string concatenations and innerHTML?
 
Are you converting the XML to HTML? If so, perform the conversion on the
server and send the generated HTML to the client. Manipulate the DOM on
the client. GWT excels at that work, as it is designed to reduce
DOM-related memory leaks.

+1
Either that or send JSON; or actually anything but XML (IIRC, Wave only sends the initial document as XML, everything else is actually JSON-based, from protocol buffers definitions)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment