I was wondering whether anyone could shed any light about what’s happening under the hood of the Pufferfish ‘Tween Two Points’ node? I was looking to emulate the functionality in C# mainly to reduce a dependency (getting students to install plugins is rarely easy) and also perhaps pick up a process speed boost if possible.
I am guessing pufferfish is interpolating the values and not using line.PointAt, since there are several components that would work with the same logic.
a script component is usually slower, but there are tons of tricks to get better performance. With some tricks applied, basically by bypassing the copying of data during in- and output, you can improve performance significantly… Also note, there are many more optimizations possible. This particular problem even qualifies for vectorization using SIMD instructions. However, the stronger you optimize, the harder code becomes to manage/read. If you are happy with the speed, you shouldn’t improve further just because for the sake of optimization. You might add unnecessary code complexity.