Follow-up Comment #13, bug #68145 (group groff): I don't know if this is helpful.
With unlimited page length the value of 'vpos' just keeps increasing. At the
bottom of the multi bash file it is set to
V16440280
In that case this code in tty.cpp looks expensive:-
if (vpos > nlines) {
tty_glyph **old_lines = lines;
lines = new tty_glyph *[vpos + 1];
memcpy(lines, old_lines, nlines * sizeof(tty_glyph *));
for (int i = nlines; i <= vpos; i++)
lines[i] = 0;
delete[] old_lines;
nlines = vpos + 1;
}
Under 1.23.0 the max value for vpos is 9960. This code is called in add_char
so I assume it is called for every character, and vpos is incremented for
every line output.
Pretty sure my analysis is /wrong/incomplete/unhelpful/ as usual. 😄
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68145>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
