does is possible this code to be shorter ?
Hello, I have a lot of plugins in my Zombie server and sometimes (not very often maybe wen the server is 32/32] have lag and for this i want part of the plugins to be shorten. For example this code - http://pastebin.com/HQatZ0yh
|
Re: does is possible this code to be shorter ?
Code length pretty much has nothing to do with performance. A 5 line long code can perform as bad as a 100 line one. Really depends on what that code is doing.
And, by looking at your code, it seems like it is something called on map change. Something executed at map change most likely has no effect on lag during the map. |
Re: does is possible this code to be shorter ?
I would need to see more code to figure out how to reduce it. There is a lot of redundancy so I'm thinking it can be. But as Klippy said, if its called somewhere like plugin_init or plugin_cfg, this is done at map change only and will not affect gameplay. Reducing code for the sake of reducing it might not be a reasonable reason to re-write half of this plugin.
|
| All times are GMT -4. The time now is 18:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.