3 ms·
> Singletons are easy to implement, simple to understand and have no performance penalties. Unless there's any concurrency to the system, that is. Then they're
by masklinn 14y ago
> Singletons are easy to implement, simple to understand and have no performance penalties.
Unless there's any concurrency to the system, that is. Then they're shared state (as fraught with peril as any shared state) except they're shared state which can be broken/corrupted straight from the initialization.