On 1/4/07, Anthony Oganesian <[EMAIL PROTECTED]> wrote:

Hi,
I am trying to optimize my servlet which uses FileUload for a heavy
load and would greatly appreciate any suggestions. Specifically, I
wonder if it is possible (advisable) to instantiate some of the
FileUload objects as static (e.g. DiskFileItemFactory)


If you are just using FileUpload "out of the box" (i.e. without adding your
own custom classes), I wouldn't bother trying to cache instances of the
FileUpload classes. The instantiation cost is insignificant. You'd be better
off spending your time optimising the threshold between memory and disk
storage for your particular scenario.

--
Martin Cooper


Thanks a lot in advance,
Tony.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to