Tuesday, August 27, 2013

JSON object to AutoBean via JSNI in DevMode


is there anything faster than

final String payload = new JSONObject(jsonDataFromJSNI).toString();
dataBean = AutoBeanCodex.decode(factory, Data.class, payload);

when in DevMode? The JSON data is embedded into the host page and not that tiny (worst case ~600kb uncompressed) and the above solution makes DevMode hang for about 3-5 seconds when refreshing the site. Thats kind of annoying and I just want to make sure I didn't miss a different solution for DevMode thats maybe faster.

-- J.

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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment