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
Instantiate NSDateFormatter is expensive operation and you use it exactly that way. You can read this in Apple documentation:
Creating a date formatter is not a cheap operation. If you are likely to use a formatter frequently, it is typically more efficient to cache a single instance than to create and dispose of multiple instances. One approach is to use a static variable.
The text was updated successfully, but these errors were encountered:
Instantiate NSDateFormatter is expensive operation and you use it exactly that way. You can read this in Apple documentation:
The text was updated successfully, but these errors were encountered: