Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Stata graphics speed


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Stata graphics speed
Date   Mon, 12 Jun 2006 13:11:02 +0100

In Stata 8 much of the Stata code was 
taken out of the executable and rewritten 
as .ado and other files. Thus there can be 
quite a heavy interpretative overload. 

Also, a given graph requires 
many files to be loaded into memory. 

As an example, 

sysuse auto
scatter mpg weight
program dir 

The full explanation of this is more 
complicated than I know. 

In any case, I doubt that the platform 
-- in your case Windows -- is the only
issue. 

Nick 
n.j.cox@durham.ac.uk 

Allan Reese
> 
> Something I've never understood is why graphs take a long 
> time to appear in the
> first place.  Commands like "gen y=_n" happen immediately, 
> even with quite large
> numbers of observations.  (I could just notice the delay with 
> obs=1 millon).
> In contrast, a simple "scatter y x" with a few observations 
> takes several seconds
> before anything appears.  That sometimes applies even when 
> what comes up is a syntax
> error.  Can anyone explain?  I've guessed that the delay is 
> while Windows allocates
> memory for the graph window, but that is just a guess.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index