You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repeatedly creating a new instance (for repeated lookups, etc.) is an anti-pattern because of the work done during initialization. Even if we use a cache, it's a pretty big hit to do this multiple times per request.
A singleton pattern (forcing use of a static get_instance() method by default) would work around this.
The text was updated successfully, but these errors were encountered:
Repeatedly creating a new instance (for repeated lookups, etc.) is an anti-pattern because of the work done during initialization. Even if we use a cache, it's a pretty big hit to do this multiple times per request.
A singleton pattern (forcing use of a
static get_instance()
method by default) would work around this.The text was updated successfully, but these errors were encountered: