Raised This Month: $ Target: $400
 0% 

Better to have 1 plugin that does the work of multiple plugins?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 06-22-2013 , 15:24   Better to have 1 plugin that does the work of multiple plugins?
Reply With Quote #1

As far as server efficiency goes, like keeping ram and CPU load low

Is it better to have 2 plugins which do 2 separate things or 1 plugin that does the work of both?

Is it even worth combining them?
__________________

Last edited by PresidentEvil; 06-22-2013 at 15:25.
PresidentEvil is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 06-23-2013 , 09:42   Re: Better to have 1 plugin that does the work of multiple plugins?
Reply With Quote #2

By myself I'm using one plugin for one function. I don't think, that it's worth combining them, because one function is not working, all other functions won't work either.

That's like the Minecraft Bukkit Plugin Essentials, it has thousands of features, but when it's no working, everything is not working
Rytis is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-23-2013 , 10:43   Better to have 1 plugin that does the work of multiple plugins?
Reply With Quote #3

Don't bother combining plugins. SourceMod is modular by design, don't work against it.
__________________
Dr. McKay is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-23-2013 , 10:58   Re: Better to have 1 plugin that does the work of multiple plugins?
Reply With Quote #4

Its better to say, merge 5plugins that are similar and share data use the same data and db connection, than farming them out and maintaining say.. 5 different db connections.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 06-23-2013 at 10:58.
friagram is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-23-2013 , 11:33   Better to have 1 plugin that does the work of multiple plugins?
Reply With Quote #5

Quote:
Originally Posted by friagram View Post
Its better to say, merge 5plugins that are similar and share data use the same data and db connection, than farming them out and maintaining say.. 5 different db connections.
I always use SQL_Connect instead of SQL_TConnect and pass true to the persistent parameter. The slight risk of delaying server startup if the database server is down is worth the lowered load (since many plugins can share the same connection).

Of course, you should always use SQL_TQuery instead of SQL_Query.
__________________
Dr. McKay 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 13:28.


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