Performance

René Micout rene.micout at numericable.com
Sun Jun 20 08:13:31 EDT 2010


Thank you Mark,
Perhaps some milliseconds won... :-)
I understand about using (or not using) "é", but all work well...
without "accents" it is not possible to write french words...
Do you think that can have consequences about performance ?
René

Le 20 juin 2010 à 13:07, Mark Schonewille a écrit :

> René,
> 
> Case will definitely be faster. A good alternative would be:
> 
> add 1 to vgCompteurFlux[vpNumeroduFlux]
> 
> I wouldn't use special characters such as é in variable names. I very rarely have to make such choices, because I have a different syle of programming.
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> 
> Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj
> Download Clipboard Link http://clipboardlink.economy-x-talk.com and share the clipboard of your computer over the local network.
> 
> On 20 jun 2010, at 12:38, René Micout wrote:
> 
>> Thank you Mark,
>> In my project I use lot of "do" command...
>> For you, is that (the number of flux (flows) is 5) :
>> 
>> put "add 1 to vgCompteurFlux"& vpNuméroduFlux into vxA ; do vxA
>> 
>> faster or slower than :
>> 
>> switch vpNuméroduFlux
>> case 1 ; add 1 to vgCompteurFlux1 ; break
>> case 2 ; add 1 to vgCompteurFlux2 ; break
>> case 3 ; add 1 to vgCompteurFlux3 ; break
>> case 4 ; add 1 to vgCompteurFlux4 ; break
>> case 5 ; add 1 to vgCompteurFlux5 ; break..
>> end switch
>> 
>> You can answer to me : make a test ;-)... But have you ever had this choice to make ?
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list