I was running a test with a C# component based on a blog I saw some time ago.
I am using a simple for loop that finds the maximum in a list of numbers. In the first case, the input is an object while in the second case I defined it as a double. There is a huge difference in the time it takes to run the script; around 20 times faster, in the case that the input is defined as System.Object.
I was wondering why is this happening, and is it better if in general, the input is System.Object instead of a double, Point3d, Curve, or something else.
Test c# script.gh (4.0 KB)