Can i efficiently mask a group of shape geometries?

I Have a large Shape defining an outline, and a List of Shapes defining holes in this outline.

I want to render the outline shape in a solid color, but the shapes defining the holes should be completely transparent.

I tried to set the paths of the hole-shapes into the “holes” field of the outline shape, but this is seems to render extremely slow.

Is there a way to do this more efficiently? I took a look at the Composer, and there is an example for masking, but i did not see a way to mask only parts of a scene, or even just one group.

There are some examples in three-mesh-bvh that might help, see the ‘clipped edges’ example: GitHub - gkjohnson/three-mesh-bvh: A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.