Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: -stylerules- updated on SSC


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   Re: st: -stylerules- updated on SSC
Date   Thu, 14 Apr 2005 08:04:32 -0500


Thanks Michael and others. I'm working with a dataset of a few thousand cases and I can't tell any difference whether I preserve or not. But, suppose you had some monstrous data set - how much time would the preserve/restore options take? Are we talking 5 seconds here, 5 minutes, or what?
Here are timings on 325,000 obs and 248 vars.
. des,short

Contains data from c:/statdata/pdox242e/raoafib.dta
  obs:       325,102                          RAOAFib Table version of  1 Feb
                                                2005
 vars:           248                          1 Feb 2005 23:42
 size:   141,094,268 (31.1% of memory free)
Sorted by:
     Note:  dataset has changed since last saved

. set rmsg on
r; t=0.00 8:02:40

. preserve
r; t=5.69 8:02:49

. restore
r; t=0.25 8:02:54


So it is 6 seconds on a fast machine and fast disk.

Fred

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[email protected]


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index