coding a plugin may be easy. but optimizing it so that it consumes less RAM, more speed, less disk usage may be hard. this hints may help coders to optimize your codes: 1- you should know which modules are better in executing some functions. 2- is recomanded that instead of including a header file just copy the needed parts to your code if it wasn't a module header. 3- in most times using #define is better than constants because it needs less resources exept the disk space. 4- replace the constant equations directly with result to speed up execution time and decrease required disk space. 5- you should have an idea on translating algorithms to assembly so that you know how to optimize it. for example, using for loop with constant repeat times is better in disk usage. but it needs more processes and ram. 6- optimizing code sometimes make bad effect on readabilty. so make sure you use the comments to describe it.