09-06-2006 03:46 AM
09-06-2006 04:03 AM - edited 09-06-2006 04:03 AM
Message Edited by dan_u on 09-06-2006 11:05 AM
09-06-2006 04:05 AM
Look at attached Pic
Hope this helps
Dev
09-06-2006 04:25 AM
09-07-2006 04:31 AM
Hi,
Consider the logical comparison. This is almost 4 times faster in case of integer inputs.
Tomi
09-07-2006 04:57 AM
09-07-2006 05:13 AM
09-11-2006 09:10 AM
09-11-2006 09:55 AM - edited 09-11-2006 09:55 AM
Message Edited by GerdW on 09-11-2006 04:57 PM
09-11-2006 10:44 AM
Hi GerdW,
See the results below with LV 7.0. It compares the div, and, shift execution. There is no conversion dot on them.
This shows that the "shift" is the fastest if the result is not used. Note, the result has to be inverted (it has additional time cost) to get the same result as the "div" or "and". In this case it is slower than the "and".
If the calculation result is indexed and outputted then the "and" is faster. I have no idee about the reason... Perhaps memory managing.... But I replaced the order of execution and the results of each versions were the same....
In my previous mail the conversion converted the number from I32 to U32. At that time I played around it and I could not recognize difference in the result. I supposed it is not a real conversion just different interpretation of the number.
LV 7.1, P4 2.8GHz
Regards
Tomi