As Yoav said, pooling is a question of how expensive it is to create them.

Also to add in there are many more factors to consider

1. how expensive is it to GC in a non pooled environment
2. how expensive is it to synchronize to keep your pool thread safe

so it all becomes a question of the scenario that you have, it is not
general

Filip


----- Original Message -----
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, January 29, 2004 11:11 AM
Subject: RE: Design Question in TomCat 5



Howdy,

>But from Sun's web page, it said do not pool objects. So my question is
"Is
>it a good idea to do object pooling" for the sake of performance
>improvement?

"Do not pool objects" is an overly general tip.  If objects are
expensive to create, pooling them is a classical way to enhance
performance of a system.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


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

Reply via email to