❔ optimization
Sincere question about optimization here...
The RenderFirstTab() method is called in an infinite loop.
Should I instantiate the FSLabel class just once in another location, and then call just the Render() method inside the Loop, or it's ok to do it this way:
5 Replies
i'm not sure what framework this is but you should probably cache it
almost certainly you should not be newing up unique objects each time
it's ok if it's a struct
True, syntax highlighting indicates it's not
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.