intersect and match ruby routines are taking long time to execute. Any help/suggestion in optimizing them would be great.

asked 2018-10-10 23:46:21 -0600

Karthick gravatar image

updated 2018-10-11 08:28:53 -0600

I am passing the building model for intersection and matching and it takes around 60 secs complete it on unix env with ruby 1.9. Any suggestion on how to improve execution time would be greatly appreciated.

Thanks Karthick

edit retag flag offensive close merge delete


@Karthick what version of OpenStudio are you using. We are currently using Ruby 2.2.4. It has been a long time since we used a 1.x ruby so that could certainly create issues in trying to use the SDK. If you call the OpenStudio CLI to run the measure, it will use our built in Ruby, so that may a good idea. It is also hard to know if the time seems long without knowing more about the complexity of the model. Is the time an issue because you are running a large parametric analysis? You could always pre-intersect.match the seed, you can also turn of intersect in measure unless needed.

David Goldwasser gravatar imageDavid Goldwasser ( 2018-10-11 12:30:11 -0600 )edit