BSD 1 development
[unix-history] / exrefm / exrefmc.n
CommitLineData
2fd0a8e1
BJ
1.if !\n(xx .so tmac.e
2.SH
3Limits
4.PP
5The editor limits that the user is likely to encounter are as follows:
6512 characters per line,
7256 characters per global command list,
864 characters per file name,
9128 characters in the previous inserted and deleted text in
10.I open
11or
12.I visual,
13100 characters in a shell escape command,
1430 characters in a string valued option,
15and
16256K characters in the temporary file.\u\s-2\(dg\s0\d
17.FS
18\(dg Repeated blanks and tabs are compressed in the temporary file,
19as are blanks between ``words''.
20This makes the buffer effectively larger than 256K characters;
21if the file being edited contains many repeated blanks,
22it may be editable even if it is larger than 256K.
23.FE
24The limit on the number of lines depends on the amount of core:
25each line takes at least 1 word, and to effect
26.I undo
27occasionally up to 2.
28This editor is much larger than
29.I ed
30and on
31\s-2PDP\s0 11/40's
32which do not have separate instruction and data space
33it is limited to about 2000 lines if
34.I visual
35or
36.I open
37are ever used.
38If a full core load of user space is not available
39.EX
40may not be usable.
41On a
42\s-2PDP\s0 11/45
43or
4411/70
45the size of the editor is not a problem as it can run
46with separate instruction and data.
47.SH
48Notes on temporary file overflow
49.PP
50This editor uses a temporary file as a workspace.
51The management of this file is done in the same way as in
52.I ed .
53Each line in the file is represented by an in-core pointer to the
54image of that line on the disk.
55.PP
56The important point to note here is that the editor does
57.I not
58reclaim space in this temporary file used by lines which are
59deleted or changed.
60This means that files which are larger than 128K characters
61may be difficult to edit.
62Similarly systematic changes on large numbers of lines may
63run the editor out of temporary file space.
64.PP
65If the editor runs out of temporary space you can write the file
66and then use an
67.I edit
68command to read it back in.
69This will reclaim the lost space.
70A better solution is to split the file into smaller pieces or to use a stream
71editor such as
72.I gres
73on the file.
74.I Gres
75is described in section I of the
76.I
77UNIX Programmers Manual.
78.R
79.br
80.ne 30