Raised This Month: $ Target: $400
 0% 

Optimizing code.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 04-10-2009 , 04:28   Re: Optimizing code.
Reply With Quote #3

Quote:
Originally Posted by Spunky View Post
Only thing I can see wrong is calling sizeof when you probably already know the size. Waste of resources. Can't tell you more without understanding what you're trying to do, which I don't.
sizeof() is a compiler directive, it will be preprocessed to the actual value, it is no different at all than just using a number, the final result passed to the compiler will be the same.
__________________

Community / No support through PM
danielkza is offline
 



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 02:19.


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