CSG clipPolygons - it will spend much time


there is a main Geometry and some other Geometry(like holes),
and i want to use “main” to subtract other “holes”, but it spends too much time when the number of ‘holes’
is not one.

when i read the CSG codes,its “clipPolygons” function is a type of “recursive function”.
how can i deal with it?