Plugin efficiency
Would it be more efficient for this code if I were to take the pcvar and make a global variable for its value to be used instead of calling the get_pcvar_num fuction every time I need the value for a pcvar? I know I would have to change the map for the cvar to be updated.
Like this: PHP Code:
|
Re: Plugin efficiency
Yes but it's likely it won't be significant unless you have many and are called very often like in a think forward or something.
|
| All times are GMT -4. The time now is 07:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.