Recently I was thinking, what if I allow any other scripts to call the module only once.
Would that change anything?
For example, would it improve speed/performance?
The performance increase would be so low it wouldn’t even be worth it, even if it even improves it at all.
Yes, it will improve performance, but the cons are more than pros.
Like what are the cons here ??
You are restricting the model on a one script, if you are using this module on another script, that would error on other scripts but not the first one used.
No, I can use it in all scripts.
ModuleScripts are already cached on the first require; this won’t improve anything
3 Likes