Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4872

C/C++ • Re: Discrepancy between datatypes performance

$
0
0
OK yesterday night I tried the code on a pico 2 and the one loop was always faster then the two interleave loops.

I think that you have a lot of interruptions when you do the first loop in your process. This is why I ask you to invert the loop.

Because floating point is slower the time use by the interrupt is not detectable.

B.t.w. the increment instead of using the index inside he loop have the same time. This show how good the compiler Is able to optimize the code.

Regards,

Daniel

Statistics: Posted by danjperron — Wed Oct 09, 2024 10:45 am



Viewing all articles
Browse latest Browse all 4872

Trending Articles