On 09-Feb-2001 Jean-Marc Lasgouttes wrote:
> 
> Step  1.2.0cvs     1.2.0cvspatched    1.0.3
> 1      1M             1M              7856K
> 2     26M             25M             8096K   
> 3     41M             39M             n/a
> 4     52M             50M             8552K
> 
> Step 2 tells us that we have a cost per cell of about 10k for a
> tabular. This seems a very high number to me. Step 3 is more
> interesting: by the simple fact of entering and leaving a textinset,
> there is a very large increase of used memory. Does this go into
> TextCache, or somewhere else?
> 

No IMO the problem is that a LyXText object is allocated at that time!

> Finally, the effect of undo seems to be important, but it might also
> be caused by the same as 3/.

No the step 4 memory usage is only generated by the undo!

> PS: and of course old tables were much much lighter :(

Well before we had 1 paragraph it doesn't matter how many cells a tabular
had (just 1 NEWLINE char per empty cell), now we have 1 InsetText, 1 or
more LyXParagraphs, 1 LyXText this all per cell!

The memory usage IS high and we really should try to reduce it. I'm open
for ideas (well we already had one in not to preserve the 500 bytes per
paragrap, did you test that in memory consuption?)

        Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Over the years, I've developed my sense of deja vu so acutely that now
I can remember things that *have* happened before ...

Reply via email to