Thread
:
efficiency, if for escaping function question
View Single Post
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
02-12-2009 , 16:41 Re: efficiency, if for escaping function question
#
7
Quote:
Originally Posted by
fysiks
Ok, I understand your reason for order but my question is: should I use if if if or just the single if?
You posted code in both forms (one with your order and one without) which has confused me
.
If I assumed something I would assume the if if if with your order would be most efficient.
Since the Pawn compiler is dumb (does no optimizations) using a single if() statement with multiple conditions should generate less code than separated statements. That'd not be the case in any 'good' compiler.
__________________
Community
/
No support through PM
danielkza
View Public Profile
Send a private message to danielkza
Visit danielkza's homepage!
Find More Posts by danielkza