Replace Path Component in Grasshopper is extremly slow?

VerySlowReplacePath.gh (13.9 KB)

Hello,

when using the ReplacePath Component I realize it is a real bottleneck in my definitions.

Here You find a definition that creates lots of Paths: the calculation of CurveClosestPoint(which I believe to do heavy computing) needs no time in Comparison to ReplacePath. If the count of paths grow, at some point GH gets unuseable.

Is there a chance to get ReplacePath to work with many paths?