On Nov 29, 2010, at 6:28 AM, Serkan Temizel wrote:
Making it singletone, I think will improve performance but can't
figure out
drawbacks.
You should take profiling measurements to support this assumption,
instead of guessing that the creation of six objects instead of one
object is really the greatest bottleneck in your application. Hint:
it's probably not.
When it comes to performance, don't be penny wise and pound foolish.
Focus on your application's areas of greatest performance cost before
giving attention to micro-optimizations.
Regards,
Bill Karwin