Very slow performance

Hello!

Seems to be a simple script so why its so time consuming proces? I have a script to get exploded drawing witch push away objects (block) from the center point of a whole objects group. Directions of translations depends on the layer objects belongs to. Thus some of them are moving up, some of them in a split direction and so on.
I will attach a screenshot as only my computer will recover :(.

What’s in your blocks and how many blocks?

exploded.gh (19.0 KB)

Blocks are just simple polysurfaces..

Your file is useless without the inputs which you probably have saved in your Rhino file.

So please share the Rhino file too