Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsl!sgilley From: sgilley@cbnewsl.att.com (The Idealistic Cynic) Newsgroups: comp.editors Subject: Need help in writing an editor Message-ID: <1990Nov30.193331.9472@cbnewsl.att.com> Date: 30 Nov 90 19:33:31 GMT Distribution: usa Organization: AT&T, Piscataway, New Jersey Lines: 27 I am in the process of writing a Unix implementation of an editor availble under MVS. My problem is that the global change command is far too slow. I've tried several different schemes but I can't seem to come anywhere near the speed of ed or vi. Could someone point me to a good book on handling this sort of thing, or alternatively, could someone give me a outline on how vi (or elvis) handles the temp file and searches to get an appropriate response time? What I've written will work, and is fine for anything under about 1000 lines, but our users may be editing 6000 - 10000 line files. *Any* pointers would be extremely helpful and very appreciated. Thanks, Sean. --- Sean L. Gilley attmail!pars!mycroft!slg attmail!sgilley 201 805 9088 (h) 201 457 5403 (w)