Raised This Month: $ Target: $400
 0% 

[QUESTION] Merging Plugins?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-14-2015 , 05:40   [QUESTION] Merging Plugins?
Reply With Quote #1

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?
Depresie is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-14-2015 , 11:03   Re: [QUESTION] Merging Plugins?
Reply With Quote #2

No different.
zmd94 is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 12-14-2015 , 11:38   Re: [QUESTION] Merging Plugins?
Reply With Quote #3

It will depend on the code of both plugins... but it won't make a big difference.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-14-2015 , 21:37   Re: [QUESTION] Merging Plugins?
Reply With Quote #4

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.
__________________
fysiks is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-15-2015 , 05:14   Re: [QUESTION] Merging Plugins?
Reply With Quote #5

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.
siriusmd99 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-15-2015 , 19:57   Re: [QUESTION] Merging Plugins?
Reply With Quote #6

Quote:
Originally Posted by siriusmd99 View Post
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.
__________________
fysiks is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-15-2015 , 13:08   Re: [QUESTION] Merging Plugins?
Reply With Quote #7

ok, thanks
__________________
Depresie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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