Maxime, One thing is to always define serialVersionUID which is calculated by the serialver utility for all serializable classes. This field is used by the serialization mechanism to check class version compatibility. If it is not defined in a class then the value is calculated based on the fields and methods of the class. You can also have the classes implement Externalizable instead of Serializable and do your own serialization in the readExternal() and writeExternal() methods. This does however make the classes more 'brittle' in that anyone adding fields to the class has to ensure they are read and written in readExternal() and writeExternal(). Also the gains may not be worth it, select the class that takes the longest to serialize and make it Externalizable and see what you get. Regards, Rob Griffin Quest Software E-mail: [EMAIL PROTECTED] Web site: http://www.quest.com > -----Original Message----- > From: A mailing list for discussion about Sun Microsystem's Java Servlet > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of > Maxime Poulin > Sent: Thursday, 20 April 2000 0:00 > To: [EMAIL PROTECTED] > Subject: Re: Applet-servlet doPost using ObjectStreams and MS Personal > Web server > > > We are also doing Applet/Servlet communication with serialized > objects... I admit that is is a bit slow, but it is mostly > acceptable. However, for some queries made to the database, the > amount of data to transfer is very large, so we are looking at a > way to make the serialization faster... > Do you guys knows ways, tricks or hints that will make > serialization faster ? I don't know, like not trying to serialize > some classes, or always use basic classes such as Vectors or arrays ? > Maxime. [snip] ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
