Need Help About Module Optimization/Performance

So Theres many modules have been created and Optimized, So I wanna ask, how they make module has good performance?, What Their Technique?, How is it works?

2 Likes

While optimizing your module can be a tedious task, what so ever do not over optimize it, you could be putting that time to adding more functions to your module to make it more useful. Unless it is a core function that the module calls constantly.

But here is a list of some things you can do, others can chime in as well.

  • Don’t use deprecated functions
  • Refactor your code, (Is this readable and efficient)?
  • Get others feedback.
2 Likes

Okay, Thanks for the information :slight_smile:

Another thing i just thought of is look at other modules, see how they handle their own functions. Specifically if a module is related to yours (Combat, Utility, Tween). This way you can see how other people in your genre decide to do something and then you can try and further it / understand it.

1 Like

Honestly, that’s really good advice. You’re absolutely right.
I’d just add that people need to be careful not to confuse optimization with clean code. It’s perfectly possible to write clean, highly scalable code without it being fully optimized.

2 Likes

Yeah, that is a good point as well! It all depends what your plans are with the module.
If its being released to the community resource it should be clean and optimized.
If not just make it optimized if its for your eyes only, (Even though writing clean code is beneficial)

1 Like

I got it, Modules is only about storing function and makes some clean code and readable

1 Like