Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif and if else end
Message
From
15/02/2001 21:30:20
 
 
To
15/02/2001 18:05:41
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00476073
Message ID:
00476565
Views:
28
Bob:

> I saw a message from Microsoft recently that mentioned the standard IF ELSE END IF construction is much faster than IIF. I should qualify that this is in VB. Even though an IF ELSE has more commands to interpret (three versus, one) There is more overhead with IIF that if you are looking for speed fewer commands may not be better.

Where did you see this as it makes no sense to me (unless it is safer in some way). Having written C-to-Assembly cross-compilers in an earleir life, I can tell you that a straight interpretation of an immediate if is takes less clock cycles.

Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform