Well, the all-the-way fast way is to have the basic structure of the object at both the send and the receive location, and only send the data. At the receive end, use those data to align the local description of the object with the sate of that class of object at the sending side.
You could serialize the object to a file that both ends have access to, then retrieve that serialization at the receiving end. All you would have to send would be the location and name of the file. you could put more into that file, if you desired. or you could put more than one file, each holding a specific category of data.
Usually, if you really want speed, you have to re-invent the wheel. Processes like serialization are robust, and able to handle all contingencies, but that makes them (usually) less than optimal for any specific task.
|