[Cosmo-dev] Re: [commits-cosmo] (rletness) 
calculate calendar bytes length at time of spooling to ensure
randy at osafoundation.org
Fri Apr 6 09:17:13 PDT 2007
Brian Moseley wrote:
> every time we add code to read an entire calendar or request content
> or other arbitrarily large chunk of data into memory i get cold chills
> down my spine. we already know that the server consumes huge amounts
> of memory in normal operation, and we should be in the habit of
> reducing that wherever possible, not adding to it.
Understood, but the code I added doesn't introduce anything new. The
only difference is I get the length of the byte array before passing the
byte array into ByteArrayOutputStream().
More information about the cosmo-dev