On Thu, Feb 08, 2001 at 11:07:45AM +0100, Juergen Vigna wrote:
> > More details: you already get a good memory consumption with just one
> > 50x50 tabular. Once it is inserted, resident memory goes to 26M.
> > Insert one character in one cell, and you go to 32M; subsequent
> > characters in the same cell do not see to change a lot. However,
> > inserting a character in a second cell brings you to 42M!
> 
> Just one word: Undo!
> 
> That's the problem. The undo mechanism right now is only able to work
> in the outermost paragraph so if you change something inside a tabular
> inset the outermost paragraph has to be duplicated for Undo.

The memory consumption can be (slightly) reduced by deleting the line
 text.reserve(500)
in LyXParagraph::LyXParagraph.

> Unless this scheme is not changed we'll have to stay with that or disable
> Undo inside the tabular insets.

Maybe disable the undo for tabulars with > N cells.

Reply via email to