home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!LEICESTER.AC.UK!SDD
- Return-Path: <@OHSTVMA.ACS.OHIO-STATE.EDU:SAS-L@VTVM2.BITNET>
- Via: uk.ac.leicester; Fri, 22 Jan 1993 11:00:24 +0000
- X-Mailer: ELM [version 2.3 PL0 (LUT)]
- Message-ID: <8627.9301221055@irix.le.ac.uk>
- Newsgroups: bit.listserv.sas-l
- Date: Fri, 22 Jan 1993 10:55:40 GMT
- Reply-To: Simon Dunkley <sdd@LEICESTER.AC.UK>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Simon Dunkley <sdd@LEICESTER.AC.UK>
- Subject: Saving time with indices...
- Comments: To: "(SAS(r) Distribution list)" <sas-l@vtvm2.cc.vt.edu>
- Lines: 39
-
- A colleague here, John Woods <wrj@le.ac.uk> sent me the following, which
- may interest some people:
-
- Forwarded message:
-
- > I have a large dataset (76,000 obs, 8 vars = 5.6Mb) that I needed
- > to do a many to one linkage from a small dataset (900 obs, 2 vars)
- > When I came across the 'create index' thing (new) in 'proc datasets'
- > I thought that this might be a more economical way of doing the
- > linkage rather than using 'proc sort' on both files.
- > I was expecting that 'proc sort' and 'create index' would take
- > about the same cpu time and the 'merge' would take slightly longer.
- > The saving being that I do not need the disk space to hold the sorted
- > verions of the datasets. The index (a character string) takes only 75K.
- > Because the one dataset is tiny compared with the other I decided to
- > see what the timing differences were whith the various combinations
- > of sorting and indexing.
- >
- > order order merge
- > Big time Tiny time time
- > sort 12.6 sort 0.25 10.58
- > sort 12.6 index 0.57 11.89
- > index 22.6 sort 0.25 50.03
- > index 22.6 index 0.57 50.7
- >
- > I really didn't expect the difference to be five fold on the merge,
- > or three times overall.
- >
- > John.
-
- Simon
-
- 00 0 O o o...
- 0 ___ _________________ _______________ _______________
- ][_n_i|( ooo___ | Simon Dunkley | | sdd@le | | sdd@le.ac.uk|
- ( __ | | | | | Department of | |University of| | +44 |
- _||__|_|_|_|_____|_|__Psychiatry___|_|__Leicester__|_|_533__523259_|
- o O--O o o o o-o o-o o o o o o o
- -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
-