Quote:
Originally Posted by Dean C
Not if they are done efficiently. Of course they technically use more resources, but it's such a miniscule amount it barely makes a difference even on large sites
|
Dean, are you sure? Let's do a quick test: Emulate on your test server 1000 users that do 5 preg_replace() per second in a timed loop (through an eval() function) and let me know what are the results.
Just for your information, using eval() for templates is already bad... now imagine that you stiff your code with the replaces, especially the ones that use regular expressions. Very bad. So for me, this is definitely a no go.
Quote:
Originally Posted by Dean C
It makes absolutely no difference how many plugins or products you have installed if you're dynamically changing the HTML before its output. As long as you do it carefully, and efficiently it barely touches the resources.
|
Let's put it this way: most vBulletin developers hate to use the plugins, for one simple reason:
performance. The more code you add through plugins, the worst your board will run. This is not about writing judicious code, is about pure and simple math. More is worst on a busy server environment. So ya... adding more plugins will ruin your board performance.
We don't want to get into those details related to performance tests. vBulletin devs have an impressive array of server configurations and they test their software from any possible angle and performance, which I guarantee you...
no hacker does it on those forums. I'm a little freaky with server software (to a point that I write my own custom RPM's to improve the overall server performance) and I still don't have 25% of the capacity to test things like vB. I only have 3 servers to test a piece of code. 3 servers that hammer one board emulating thousands of users spinning like crazy your disks. Still this is not satisfactory to some customers. You get the idea? So for sure I will not edit in any way, shape or form the original vBulletin board, unless I can prove it 100% that my code will not break anything.
You talked about "doing it carefully, and efficiently". I'm just curious, what is your testing process. Until you reply, let me tell you my coding method also: I edit as less as possible the actual vBulletin files.. and if I'm forced,
I never use the plugins sytem. I aways edit the PHP code, it improves the code performance by
a lot, compared with the same code used through plugins. That is tested by myself into heavy server environment, so I know is true.