Grasshopper

algorithmic modeling for Rhino

If I do this, it displays two overlapping spheres in the Rhino viewports, but does it make a copy of the sphere in the memory of the computer?

I would like to know if doing things like this duplicates the data because I like using param components to arrange my definitions, but I don't know if it affects the performance because it has to make a copy of all the data or something like that.

Views: 689

Replies to This Discussion

My understanding is that yes - grasshopper is making a "deep copy" of each list/tree of items that you're moving around each time you move it into a new container. This is necessary so that changes in one component don't affect another, and you can reason about operations in your definition independently.

The vast majority of the time, however, creating containers is a very negligible slowdown compared to actual operations. You'd need to have lists of millions of objects for it to even be visible - and if your case is performance critical while handling that large an amount of data, I'm not sure native GH components are the best way to go. You might want to look into the C# scripting component or compiling your own GHAs. Definitions can get really slow with huge amounts of data, and in my experience GH is better for ideating and iterating quickly than creating performative code. 

Thanks for answering. Performance hasn't been such a big deal to me, but I wanted to know that to consider it in the future.

Maybe someone has a better idea, but MetaHopper has Get Groups which retrieves all groups in the document along with their nicknames (annotation text as you put it), colour, and border style.

Problem is its all jumbled together (ordered by most recently created?? maybe)

Geometry Dash apk online.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service