Hello, I am having a problem with how long it takes to run a script. I am having a really weird problem with it.
at first, my script only took like 3 or 4 min to run on my test model, and about 30 min on the main model our live models that have our actual projects linked into it (the one for work) Then I added some changes and it jumped all the way up to about 17min to run it. and took 2-1/2 hours on the main model. I started to analyze what was taking the longest time to run, so I used the Laptime nodes from clockwork, and found that a new way to do a particular part of my script that one node in particular took about 7 min to run.
So I was like ok, ill Freeze this stuff (that node and its connected nodes) and redo it back to the way I had it before. I did that and then ran it again. And it ran at 4min and 55sec! I was ecstatic! But then, I shut dynamo down and the Revit practice project, to clear my memory and ran it again, and it took over 15min to run this time around after I have made no changes, what-so-ever. What happened here?
Also, I noticed that every time I run the script consecutively, it takes about a minute to a minute-and-a-half to longer to run each time! Is this a memory leak? I tried everything, even restarting my computer but it behaves the same way every time.
Then I tried to run it on the main model, (while I worked on other things) a let it run for over 5 hours, and it never completed. Just stopped responding. Now, I fear the same thing is going to happen today. I started it over 3-1/2 hours ago today and its still running. I don’t want to touch it because I am afraid it will crap out on me, and I really need this script to work or my boss is going to kill me! I have to get this thing down to a working time like ~1hr per run, or its my butt. Is anyone willing to take a look at it for me? I can give you my practice model and my script if you tell me how to send it to you.
Anyone else know why Dynamo is so painfully slow to run in general? I am using Dynamo 1.3.4 Thanks!