Grasshopper

algorithmic modeling for Rhino

Hi

I've tried to use grasshopper to re-organise a list of numbers into a different branch arrangement. I'm finding it takes a huge amount of time and I do not understand why. I attach an example which has 8760 branches each containing 9 values. I want to reorganise it to 9 branches each containing 8760 values. This example takes over 5 minutes (I have a reasonable machine). In a real application I'd need to work with 200 branches containing 8760 values.

Does anyone know why grasshopper is so slow to do this? How do I make it quicker? - I think my code is efficient so do I need to script it?

Any advise appreciated.

John

(For context, this relates to climate based daylight modelling. I made an application in grasshopper to model and present the calculation results. I built it all around DIVA for Grasshopper but I'm moving over to Honeybee. DIVA outputs results organised as hours per point where as Honeybee outputs as points per hour. To start, I want to reorganise the Honeybee results to match DIVA so I can make a point to point swap. I'll develop it further from there.)

Views: 473

Attachments:

Replies to This Discussion

Hi John, your definition is taking only half a second to solve in my machine, not sure why it takes so long for you. If you turn the profiler on (display>canvas widgets>profiler), does it say 5 minutes for the list item component?

Maybe try with path mapper, which is at least a more compact solution:

Hello Mire and David

Thanks for the suggestion of the path mapper - I'd never heard of that before. Its takes under 1 second so is exactly what I needed.

In answer to your question, the bottleneck was the 'list item' component - it takes 6.5 mins! So I guess I efficiently used an inefficient method :-)

If you enable the Profiler widget, where does it think the bottleneck is?

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