On 12-Feb-2001 Jean-Marc Lasgouttes wrote:
> 
> Juergen> No IMO the problem is that a LyXText object is allocated at
> Juergen> that time!
> 
> That's what I meant, in fact. Presumably, if the code needs to
> allocate a new LyXText for the table, there also an old one in the
> cache that should go away.
> 

There is a cache but not in the tabular-inset, it's the InsetText which
needs the LyXText and that is one per BufferView (which currently is fixed
to 1 ;). So there is 1 LyXText for each BufferView for each InsetText AND
the old one IS deleted if I reallocate it!

> Yes, the 1.2.0cvspatched is just that. One gains 2M (to compare with
> memory consumption of around 50M!). This means that undo is really not
> much, compared to lyxtext.

Ok this means we have to find a way to only use 1 LyXText instance, but
how ... ???

      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

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

October 12, the Discovery.

It was wonderful to find America, but it would have been more wonderful to miss
it.
                -- Mark Twain, "Pudd'nhead Wilson's Calendar"

Reply via email to