• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

GWT - Serialization mechanism

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I read an article on GWT serialization; GWT - Serialization strategy is not as sophisticated as Java
It says that the GWT serialization is not as sophisticated as that of Java. In java, as per my knowledge if I have a list of objects and if a particular object is repeated the object data is serialized only the first time , the next time if the same object is encountered only the reference of the object is passed.

My question is if the Gwt serialization is not sophisticated does that imply that the object data may be serialized many times. If such is the case I have to improvise on my performance using some other techniques while passing same objects to the server.

Thanks and Regards,
Suhas
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All RPC requests are handled as separate transactions. There isn't any built in caching of serialized objects. If you know a List is not going to frequently change or is static, you can persist that object on the client side after it's retrieved from the server. You can store it in the client session and if the List is called again, just add a method to check if the object is in the session first before making a RPC call back to the server.
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!