Hello,
Some time ago I tool a look at the C++ code of DumpLayerConnections() function and realized the bottleneck is on the get_global_positions_vector() method.
In order to avoid this call, could it be possible to define a new function, e.g. DumpLayerConnectionsWithPositions(), where the user can send to the function the positions of the nodes of source and target layers? This way, the calculus of the distance between nodes would be much faster (and it would be possible to avoid the call to get_global_positions_vector() ).
In addition, could it be possible to create a function, e.g. GetLocaNodeCollectionPositions(), that returns the positions of (local) nodes? (this positions could be send to the precious DumpLayerConnectionsWithPositions() function).
Best,
Xavier