C# cache auto-delete


I am trying to make a grasshopper definition run faster and thought writing some of the steps within c# scripts might help. However, I see the c# components are taking longer to run and are also storing cache. Is that the reason why the C# script taking longer? And how can I make sure it doesn’t store cache?
thanks!

The C# component will compile the code on the first run. If you run recompute in Grasshopper there shouldn’t be much of a difference between the two.

Ah got it. So its only the first time. thanks!

The script component will also copy your input, while a plugin-compiled one passes data by reference. You can bypass this, but its only worth if your input is a large dataset.

1 Like