Just my two cents.
Since we don't know what the code is executing, how often it runs, or how busy the scheduler is, it would be difficult to determine whether this large set of code would affect the scheduler.
I think there may be a way to code this so it is run outside the scheduler. It seems risky to potentially affect all scheduling for this set of code. Of course I am not sure what this code does and what you are trying to accomplish. I recommend building applications outside the scheduler.
2¢