Serialization is the process of converting objects into sequence of
bits (that includes the object's data as well as information about
object's type and the types of data stored in the object.) that can
transferred across the network connection. The process of
serialization is also called marshaling and opposite to this
the original objects) is called de-serialization or un-marshalling.
Java provides the automatic serialization of objects. For
serialization, classes of objects must implements the
java.io.Serializable interface or "import
Note: Only those objects of classes that implement
java.io.Serializable interface can be serialized and de-serialized.
Improving the Serialization Performance
• For example, you can reduce the size of the serialized data
by instructing the run-time serializes to ignore specific fields
within your class. Another way to improve performance is to implement
the ISerializable interface to gain explicit control over the
serialization (and deserialization) process.
• Fields that are declared final or transient are not exchanged
• You can use attributes to prevent specific fields in your class
being serialized. This reduces the size of the output stream and
reduces serialization processing overhead. This technique is also
useful to prevent security-sensitive data from being serialized.
• RPCs give you the opportunity to move all of your UI logic to
client, resulting in greatly improved performance, reduced bandwidth,
reduced web server load, and a pleasantly fluid user experience.
On Sep 28, 8:37 pm, lalit <lalit.bh...@gmail.com> wrote:
> Are there some metrics regarding the performance of serialization?
> How does GWT performs serializing and deserializing nested object
> structures of huge size?
> Also what are the common bottlenecks in that?
> On Sep 28, 2:13 pm, vibrant <muni...@gmail.com> wrote:
> > Serialization:
> > Serialization is the process of transmitting object across the
> > network (client and server) connection in binary form.
> > GWT supports object serialization as part of its RPC (Remote
> > Procedures Calls) mechanism.
> > Serialize Types:
> > A type is serialization and can be used in service interface if the
> > type:
> > 1. is primitive i.e char, byte, short, int ,long,boolean, float,
> > double.
> > 2. is String Date, or primitive wrapper such as Char, Byte, Short,
> > Int, Long, Boolean, Float, Double.
> > 3. is an array of serializable types (including other serializable
> > arrays)
> > 4. is serialization user-defined class or
> > 5. has at least one serializable subclass.
> > GWT RPC mechanism makes it simple to get data between client and
> > server over the network.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.