Of course loop unrolling will screw readability and there are more obvious methods to improve performance, but I simply wanted a second opinion on that. As the map will be SP only (at least for the prototype), maybe there won't be any performance issues after all.
I just started a rather ambitious economy simulation project where I have to loop a lot through various arrays/structs, some of them with constant values. When looking for a way to optimize perfomance right from the start, I stumbled upon loop unrolling:
The value assignments for my arrays are generated within an VBA automated excel sheet, so I can change values and generate new unrolled loops very fast.
But I am curious, has anyone of you tested loop unrolling with Galaxy to find out if there is any relevant performance advantage? Or will the Galaxy compiler do this for me by itself?
0
Hey, thanks for the input!
Of course loop unrolling will screw readability and there are more obvious methods to improve performance, but I simply wanted a second opinion on that. As the map will be SP only (at least for the prototype), maybe there won't be any performance issues after all.
0
Yeah, that's what I thought, too. And, God forbid, I would probably hit the script limit pretty soon :)
0
Hey,
I just started a rather ambitious economy simulation project where I have to loop a lot through various arrays/structs, some of them with constant values. When looking for a way to optimize perfomance right from the start, I stumbled upon loop unrolling:
e.g.
becomes
The value assignments for my arrays are generated within an VBA automated excel sheet, so I can change values and generate new unrolled loops very fast.
But I am curious, has anyone of you tested loop unrolling with Galaxy to find out if there is any relevant performance advantage? Or will the Galaxy compiler do this for me by itself?