Grasshopper

algorithmic modeling for Rhino

Component runtime extremely slow impossible to move sliders: Update values

I've created a component seen in the attached grasshopper file called "Adjust load profile".

The idea is that it takes in a number of loads in the form of 8760 hours of data and manipulates this data so that the load profiles can be changed. You can see more details in the component description.

The issue is that this component is running incredibly slow. I'd like to be able to update the component outputs by changing the sliders connected to the component but its so slow that it is impossible.

Can anyone give me some general feedback on why it is so slow? I would like to use python profiling but I cant seem to import them.

https://docs.python.org/2/library/profile.html

Before you open the component please open the attached excel file so that the data is available

Views: 502

Attachments:

Replies to This Discussion

Hi Anton,

1. Why are you using Tree Access for your input. That can slow down the process.

2. For profiling check this discussion: http://www.grasshopper3d.com/forum/topics/performance-profiling-in-...

3. You can use time.time() to check execution time if each part of your code.

Mostapha

Thanks Mostapha Im making some headway

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service