GWT POJO-JSON Mappers?
I was looking to find a GWT POJO-JSON mapper. In responses to another question and by Goo开发者_运维技巧gling around I found following solutions:
- GWT Overlay Types
- GWT AutoBean
- piriti
- gwtprojsonserializer
- gwt-jsonizer
My question is that does any of these (or any other) solutions has significant performance gain/lose or any other considerable advantages or disadvantages?
AutoBeans get compiled down to Overlay Types when used in client-side code, so they have all of the advantages, and are much easier to write.
GWT Overlay Types have big performance gain, because GWT compiler can optimize and inline calls to field value to native JS calls. Look at example of obfuscating of overlay types.
精彩评论