Raised This Month: $ Target: $400
 0% 

[question] array of booleans or integer?(optimization)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-15-2010 , 20:04   Re: [question] array of booleans or integer?(optimization)
Reply With Quote #8

Quote:
Originally Posted by ARES[ro] View Post
So its faster? I only counted out the server itself. Im glad to hear.
Also i do know about assembly code and such i just dont look up each operator im using lol!
Yes, X & 31 is more efficient than X % 31 or X-1. Not that you would notice a difference using either but it's always best to use the most efficient methods.
__________________
Bugsy 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 10:24.


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