Re: Java deserialization - any best practices for performances?

2009-07-18 Thread Kenton Varda
On Fri, Jul 17, 2009 at 8:13 PM, Alex Black wrote: > > When I write out messages using C++ I'm careful to clear messages and > re-use them, is there something equivalent on the java side when > reading those same messages in? No. Sorry. This just doesn't fit at all with the Java library's des

Re: Java deserialization - any best practices for performances?

2009-07-18 Thread Alex Black
Hi Alek, can you elaborate a bit on what you mean by lazy parsing? I think what I want is to be able to *reuse* my objects, specifically the instances of MyMessage, instead of allocating new ones each time through the loop. This is analagous to what my C++ code does when writing out messages, it