[comp.editors] Need help in writing an editor

sgilley@cbnewsl.att.com (The Idealistic Cynic) (12/01/90)

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)