Will be interesting to see if this helps, since the smaller loop iteration count may be what gets GCC all excited about "improving" the code!I just tried this, and it doesn’t seem to help, so it must be else where in the code. I’ll just have to keep the Array at 32 places and reduce the amount of iterations it can do in the rest of the code as you suggested for now!
it could also be loop unrolling for smaller array sizes (if you loop over the whole array) this will make your code bigger.
You can puton such a loop, and see if that helpsCode:
#pragma GCC unroll 0for (...) {}
Statistics: Posted by kilograham — Thu Jan 02, 2025 5:25 pm