The time of a backtest depends normally on the length of the tested period, not on the number of WFO cycles. But without seeing the script it's sort of difficult to elaborate on its time consumption.

You can use the timer() function for examining the time of specific algos or cycles - this way you can quickly find out what contributes to the test time of your script.