I have a loop (length ~7000) of 50 calls to ivregress gmm which initially took about 10 hours to run. A couple hours later, I ran it again (same code and computer) and it was on track to take about 4x as long. Of course it's possible that for some reason it would get more efficient with more iterations but I didn't wait around to find out. Here is some more context/troubleshooting
- I do have a large dataset but I'm importing small chunks of it using the rowrange option at the beginning of the loop (n=400, less than 20 variables). I verified this step takes very little time but I include this info in case there is some cache related issue that might be relevant. I also do a clear command at the top of the loop
- I didn't have anything else running and restarted my computer but it didn't help. Using very little % of CPU and memory
- I reinstalled (and updated) Stata and it was on track to take even longer. I'm using MP 17
Comment