Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif and if else end
Message
De
15/02/2001 21:30:20
 
 
À
15/02/2001 18:05:41
Bob Lucas
The WordWare Agency
Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00476073
Message ID:
00476565
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform