Click to See Complete Forum and Search --> : zikacj - Help with MFC editor high performance design


zikacj
April 8th, 1999, 08:05 PM
If anyone has written a text editor in VC++ could you provide a little insite
to make it easier for me?

My main goal is high performance on starting the program, loading files,
and doing replacements of strings.

Some of the files I'm dealing with are much too large for word or word perfect.

I plan to use a file stream and just display the current pages. The other pages will be on disk or in memory.

The basic architecture will load pointers to each line in the file

I'm considering a linked list
with backward/forward pointers, line length and line starting position in the input buffer.

I should be able to to replacements at about 1/2 the disk I/O speed to allow for both reads and writes. The performance improvement I'm seeking is about 100X faster than microsoft word.

The files are in only one font (courier) with only ascii text.

I love to get tips on getting applications to start quickly and getting things to display
and clear quickly in an edit box.

The other thing I'm not sure of is how to display a cursor position as either insert mode or overstrike mode?

-- Chris

A few features I'll include are multiple buffers and programmable keys