sverchok
sverchok copied to clipboard
Vector Interpolation node in Cubic mode
Problem statement
It seems that it's possible to do something because having only 9 hundreds of vertices as input and only 8 output vertices for about 25ms seems pretty slow.
what happens to performance when the input-vertices are a numpy array?
looks like this is the heavy bit.. range, where n
is the number of input points.
https://github.com/nortikin/sverchok/blob/ed9b54be807a2cbdc0868290074b55fb26cbd5a7/utils/geom.py#L245-L259
The use-case for this node is more probably a len(input_vectors) < len(output_vectors)
.
what happens to performance when the input-vertices are a numpy array?
No difference
a numba implementation is worth investigating
Cubic Spline node shares the same implementation and large input can be quite expected I guess.
this is not pretty, but seems quite fast here after the first execution. https://github.com/nortikin/sverchok/pull/4471