Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Slowing process when running a program with multiple nested loops
From
David Kantor <[email protected]>
To
[email protected]
Subject
Re: st: Slowing process when running a program with multiple nested loops
Date
Mon, 14 Jan 2013 23:05:02 -0500
Hi Ly,
I didn't suppose that you needed to cut back the depth of nesting; it
seemed that the nesting structure is intrinsic to the task.
But if it works, then okay.
The point to know is that when a segment of code is inside a loop
that gets repeated many times, it should be as time-efficient as possible.
Plus, reading/writing files is much slower than computations and
memory-read/write operations.
I'm glad that its working well for you now.
--David
At 10:23 PM 1/14/2013, you wrote:
Hi David,
Thank you for your quick and very thorough response.
Thanks to your suggestions, I did go back and found a way to speed up
the program by rewriting the 4 ado files (which in turns allow me to
cut back on the nested loops).
Thanks so so much.
--
Ly Tran
[...]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/