Mesh naked edges RhinoCommon Kangaroo2

Hi,

Is there is a faster method to get mesh naked edges than:

Polyline[] pl = mesh.GetNakedEdges();

The reason for asking this is that I use naked edges for Kangaroo2 angle goal:

I wrap all the list in GH_Wrapper, so the solver works 30ms constantly even when there is a bigger number of goals.

But the calculation increases in C# component where I create those goals. I checked each line of code and the performace slows down when the nakedEdge function is called.

Kind Regards,
Petras

I doubt it. How big are your meshes? Can you post an example?