On 09/17/2010 04:41 PM, Silas De Munck wrote:
On Friday 17 September 2010 16:32:26 Sim IJskes - QCG wrote:
On 09/17/2010 04:28 PM, Sim IJskes - QCG wrote:
On 09/17/2010 01:28 PM, Silas De Munck wrote:
the RMI mechanism for this was not the best solution. Therefore I
added a TCP
implementation using Sockets and ObjectStreams.
How often do you (re-)wrap the socket streams in ObjectStreams?
The (ReplaceTable) cache in ObjectStream may optimize your marshalling.
And if you recreate the ObjectStream the ReplaceTable will be recreated.
And the HandleTable.
i.e. the difference in performance between writeUnshared and writeObject.
Gr. Sim
I only wrap the steam once at connection set-up...
Ok, and only 1 connection per run?
The objects I send from one side to the other are always "new" so there should
be no difference in using writeUnshared and writeObject...
This can only be true if the class consists of primitive types (so no
Strings). Is it?
Gr,, Sim