Raised This Month: $ Target: $400
 0% 

Automatic Unstucking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 10-07-2007 , 20:16   Re: Automatic Unstucking
Reply With Quote #11

Quote:
Originally Posted by Ramono View Post
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.)
__________________
alien is offline
Send a message via ICQ to alien
 



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 08:06.


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