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... The objects I send from one side to the other are always "new" so there should be no difference in using writeUnshared and writeObject... Gr. Silas -- Silas De Munck PhD Student Computational Modeling and Programming (COMP) University of Antwerp Middelheimlaan 1 2020 Antwerpen, Belgium G2.07, Department of Computer Science and Mathematics e-mail: silas.demu...@ua.ac.be