Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decrement operator
Message
De
02/09/2008 09:45:56
 
 
À
02/09/2008 09:35:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01344042
Message ID:
01344110
Vues:
14
>>Viv,
>>
>>It's debatable. But do confess you're cheating a bit
>
><g>
>
>>
>>And it doesn't know you're cheating. It stores the decremented value and does not refetch it
>>
>>I suspect it's by design and for performance reasons [ a dup will be faster than a load ]
>
>Guess so. I looked at your ildasm code and your test below confirms the performance benefit . But I'm not sure whether it's me or MS that's 'cheating' . It could certainly be argued that the decrement operation on ScaleFactor has not been completed when the value is assigned to i........


Oh, the assignment has been completed - see ildasm code - it just doesn't expect (hence the dup) it will be different.
You put a white pigeon in the hat, and transform it into a rabbit

>Regards,
>Viv
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform