About the Trim Excess Method of DataTree

Hello, Grasshopper Developer!

I’m learning about the DataTree methods and properties of the Grasshopper API.

I understand the other methods and properties, but I’m not sure of the function of the [TrimExcess] method.
I tried to put some data into it, but there is no response.

Could you tell me about [TrimExcess] method?


Best regards,
Masaki

It has no visible effects on the data. It works the same as List<T>.TrimExcess() in that it frees memory it isn’t using.

1 Like

Hello David,

Thank you very much!

I understand.
I should have looked it up on Google a bit more. My apologies.