Hi,

I'm experiencing some huge performance problems with async RPC calls.

There is not much magic behind what I'm doing. It's almost as in a simple
tutorial:

private void doSomething() {
      AsyncCallback<List> callback = new AsyncCallback<List>() {
          public void onFailure(Throwable caught) {

          }

          @Override
          public void onSuccess(List result) {
            doSomeStuff();
          }
        };

        serverStuff.doSomeServerStuff();
}


My server-side code generates pretty fast a list of approx. 250 elements
consisting of simple java object with some String properties.

It takes approx. 45secs until onSuccess() triggers. This is measured after
the server-side code finished. If I return null it takes some milliseconds.

Reading the mailing list I found out that it seems to be really that slow.

I tried to use a multidimensional String Array which results also in a poor
performance.

However, if pack all the data into one single String with some separators it
takes some milliseconds.

Any idea what I'm doing wrong? It can't be that it takes almost a minute to
parse a list with a simple object on client side?!?
The solution of putting everything into one single string and parse it back
can't be the solution!

I'm running everything in developer mode at the moment.


Thanks for any advice!
/SJ

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to