Friday, March 2, 2012

RequestFactory performance issue

Hello,

I'm encountering performance issue in RequestFactory when sending
large complicated object graphs to the server.
After some debuging I found out that the problem is in line 267 in
SimpleRequestProcessor.createReturnOperations

if (id.isEphemeral()) {
// See if the entity has been persisted in the meantime
returnState.getResolver().resolveClientValue(domainObject,
id.getProxyClass(),
Collections.<String> emptySet());
}

Request that takes about 20 sec. goes down to 2 sec. if I skip this
code like this:

if (id.isEphemeral()) {
// See if the entity has been persisted in the meantime
//returnState.getResolver().resolveClientValue(domainObject,
id.getProxyClass(), Collections.<String> emptySet());
}

It dosen't seem to have any other effect on my app.
So I wonder, is it realy necessary to see if the entity has been
persisted in the meantime?
and if so, why is so slow when working with large object graphs?

Thanks,
Jakob

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

No comments:

Post a Comment