Patent ID: 8266384

Claim:
A method for deserializing an object in a server comprising: receiving into the server a serialized object comprising one or more serializations of one or more referenced objects; referencing a serialization cache by the server to determine if the one or more serializations of the one or more referenced objects are stored by the serialization cache; retrieving referenced objects from an object cache for which the serialization cache stores a serialization for the referenced object; deserializing portions of the received serialized object that could not be retrieved from the object cache; when the serialization cache does not store the one or more referenced objects: deserializing the one or more referenced objects; storing the one or more referenced objects in the object cache; and storing a serialized byte stream for the one or more referenced objects in the serialization cache; determining if one or more immutable objects are provided inline with one or more primitive objects in the serialized byte stream; and where one or more immutable objects are provided inline with one or more primitive objects in the serialized byte stream: storing a first form of the serialized byte stream in the serialization cache in which the one or more immutable objects are inline with the one or more primitive objects; and storing a second form of the serialized byte stream in the serialization cache in which the one or more immutable objects are cached separately from the one or more primitive objects.