AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [QUESTION] Merging Plugins? (https://forums.alliedmods.net/showthread.php?t=276066)

Depresie 12-14-2015 05:40

[QUESTION] Merging Plugins?
 
I would like to ask, if for example i have two plugins that are using for example prethink, would merging them into one plugin make any difference? having just one prethink call instead of two?

zmd94 12-14-2015 11:03

Re: [QUESTION] Merging Plugins?
 
No different.

Neeeeeeeeeel.- 12-14-2015 11:38

Re: [QUESTION] Merging Plugins?
 
It will depend on the code of both plugins... but it won't make a big difference.

fysiks 12-14-2015 21:37

Re: [QUESTION] Merging Plugins?
 
It will likely make it worse from a logistics point of view. You would have to add extra code to make sure that they both worked together correctly unless they share a significant portion of the code at which point you'd need to refactor it.

siriusmd99 12-15-2015 05:14

Re: [QUESTION] Merging Plugins?
 
If u have a check for example is_user_admin, which both thinks use then it will be more eficient merging both plugin and call the function once. But it doesnt make big difference. Sometimes it's better to use separate plugins, depends on what are you purposed to do.

Depresie 12-15-2015 13:08

Re: [QUESTION] Merging Plugins?
 
ok, thanks :D

fysiks 12-15-2015 19:57

Re: [QUESTION] Merging Plugins?
 
Quote:

Originally Posted by siriusmd99 (Post 2372556)
If u have a check for example is_user_admin, which both thinks use then it will be more eficient merging both plugin and call the function once.

Just one function is not enough to make it worth it. You will never notice the difference. You would need a lot of code to be shared to make it worth it.


All times are GMT -4. The time now is 18:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.