Article View: bit.listserv.xedit-l
Article #780Re: macro execution time
From: Richard Varenas
Date: Wed, 09 Dec 1992 19:39
Date: Wed, 09 Dec 1992 19:39
21 lines
1667 bytes
1667 bytes
On Wed, 9 Dec 1992 09:27:37 MET W. J. Metzger said: >On Tue, 8 Dec 1992 13:58:44 EST Richard Varenas said: >>In article <XEDIT-L%92120715220630@OHSTVMA.ACS.OHIO-STATE.EDU>, you say: >>> >>>Would someone please critique the xedit macro below and tell me why it >>>takes so long to execute especially when a file has > 500 records. >>> >>>The macro (showdups) shows duplicate records in a file. >>> >Since you have PIPES, why not just use PIPE SORT UNIQUE, or if the file >is sorted PIPE UNIQUE. The duplicate records are written to the >secondary output stream. That's the route I have chosen. A colleague of mine wrote an 18 line equivalent in PIPES that's incredibly fast. His code ran in under 15 seconds for a 4900 record file and mine (in xedit) would have taken approximately 5.7 minutes judging by the amount of time it took for 1000 records. Thanks to ALL who responded for your suggestions/help. -Rich
Technical Details
Message-ID:
<XEDIT-L%92120914532539@RUTVM1.RUTGERS.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ysu.edu!psuvm!auvm!DUVM.BITNET!VARENASShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c92b,99204ff00cfd5cc6 X-Google-Attributes: gid10c92b,public X-Google-ArrivalTime: 1992-12-10 05:51:41 PST Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ysu.edu!psuvm!auvm!DUVM.BITNET!VARENAS Organization: Drexel University Message-ID: <XEDIT-L%92120914532539@RUTVM1.RUTGERS.EDU> Newsgroups: bit.listserv.xedit-l Date: Wed, 9 Dec 1992 14:39:24 EST Sender: VM System Editor List <XEDIT-L@UGA.BITNET> From: Richard Varenas <VARENAS@DUVM.BITNET> Subject: Re: macro execution time In-Reply-To: Message of Wed, 9 Dec 1992 09:27:37 MET from <U632111@HNYKUN11> Lines: 21