Grasshopper

algorithmic modeling for Rhino

Hi,

Is there a way to speed up the code with long input data? Although input data is not used in code directly, the solution time of c# component is taking long.

Views: 380

Replies to This Discussion

I'm afraid not.

I'm not exactly sure where all the time is spend, but it's most likely because the component has to convert a data tree with 200000 GH_Integer instances to a List of 200000 System.Int32. Figuring out for each entry in the tree whether it is null, and -if not- whether it can be converted into an Int32 just takes a second and a half for that many values.

--

David Rutten

david@mcneel.com

I see, it is likely taking time to convert a data.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service