On Tue, Jul 21, 2009 at 10:48 AM, troels knak-nielsen<[email protected]> wrote:
> Irey<[email protected]> wrote:
>> That's a performance boost of 7X using a singleton versus not using a
>> singleton.
>
> You're conflating two unrelated concepts.  The performance difference
> that you observe is due to the difference between instantiating a new
> object per iteration vs. reusing the same.

Isn't that one of the benefits of using a singleton?

> You can reuse the same object in other ways than through a global symbol.

Aren't singleton classes preferred over global variables?

-Ed

Reply via email to