Hi,

With less class loading, fewer objects in memory and the potential for a
single centralized cache, singletons may help performance...

As for bottlenecks; well if you are modifying values, not just returning
cached values, then you would need a synchronized block of code and this
would introduce a bottleneck...

Jon Ridgway


-----Original Message-----
From: Steinar Bang [mailto:[EMAIL PROTECTED]] 
Sent: 12 July 2002 12:43
To: [EMAIL PROTECTED]
Subject: Re: where can caching help performance?

>>>>> "Jon.Ridgway" <[EMAIL PROTECTED]>:

> Judicious use of the Singleton pattern can also speed performance.

How so?  I would have thought singletons may introduce bottlenecks...?



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


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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

Reply via email to