Converser,
the code might be identical in both loops, but parameters might be different (e.g. Starting Point). If these are identical as well, a parallelized for-loop would be a first step to address code redundancy.
On the other hand, you code in the loop contains quite some Rube-Goldberg. You should redesign the code to be more efficient.
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.