Grasshopper

algorithmic modeling for Rhino

Hey.

I would like to ask about performance of c# component execution.
I'm working with millions of points so I've made my own OcTree class (with AABB and Vector stuff)
Now I'm testing basic components for OcTree like AABB to figure out if all functions work correctly by comparing them with GH components.

I also used Stopwatch method form System.Diagnostics to measure the execution time for judging the performance.
(As I mentioned before I'm using my own Vectro3 class, do i need to convert Vector3d to my Vector3)

Building AABB is taking 160 ms conversion 200 ms so in total is more ore less 360 ms.

Why whole component need almost 12 sec to be executed??

Thanks in advanced.

Views: 570

Replies to This Discussion

If you have a large list of input points , the culprit could be the price of inputting/casting all this data. See this thread for a few tips on this topic (for GHPython, but same behaviors are true with the C# component): http://www.grasshopper3d.com/forum/topics/ghpython-some-bottlenecks...

That said, it's always easier to troubleshoot with a file displaying the behavior you describe ;)

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