Friday, May 25, 2012

Re: JSON Parsing in GWT Client

The actual parsing is done using GWT JSON API: JSONParser.parseStrict(String). I guess AutoBean does nothing different regarding parsing. I think the time conssuming parts in Piriti are related to resolving relations between objects and handling IDs and IDREFs. Although there are no real ID and IDREFs in JSON the code is pretty much the same for JSON and XML. This part could certainly be optimized. 

I will try to further analyze the hot spots in one of the next releases.

- Harald

Am Freitag, 25. Mai 2012 09:07:09 UTC+2 schrieb dominikz:
Looking at the data it seems that piriti JSON parsing is as slow as piriti XML parsing. Generally XML dom parsing (without using piriti) is way slower than any JSON. 

Maybe this is a clue?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DNecmjl-bMAJ.
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