One operator is faster than the other := 0 or ~
Bits
Posts: 414
I ran the following pubs and found that Test_a was faster than Test_b. I did not expect this at all. Seems to me that using the := 0 would require more processing than the ~.
Whats the reasoning to this? Anyone have an idea? Thanks
Whats the reasoning to this? Anyone have an idea? Thanks
Pub Test_a result := -cnt outa[DClk] := 1 outa[DClk] := 0 result += cnt - 544 Pub Test_b result := -cnt outa[DClk]~~ outa[DClk]~ result += cnt - 544
Comments
-Phil
*edited. . .
I tested using -1 and it actually increased speed in Test_a something funny here. <- It is wrong its the same speed. Still I ask the question above.
-Phil
As a side note, I am finding that "IF" commands are faster than "Case" commands. I wonder if there is a thread that has all the speed vs commands etc.