Quote:
Originally Posted by Ramono
Why that, its not used in any other function than that.
Creating another static for it would create more slowdown...
Do you realy think thats a NEED for the plugin?
|
Static variables should not be considered as slowdown if used in such scenarios. Your function is executed relatively frequently and it's using quite few variables. 'new' statement will cause to realloc and null needed memory upon every function execution. 'static' statement will cause them just to be used, nothing else. It should make it a bit faster.
Ah, and also, statics are not to be used in any other functions as they're pseudo-global (not accessible from any other function except the one they're used in.)
__________________