Andre Poenitz wrote:
> On Tue, Aug 20, 2002 at 02:57:00PM +0200, Edwin Leuven wrote:
> 
>>>the more comprehensive per-cell information of the "real" tables.
>>
>>what would this be?
>>
>>-border info : 4 bools
>>-multicol    : 1 bool
>>-multicol opt: 1 string
>>-rotate:     : 1 bool
>>-hor align   : 1 int
>>-ver aling   : 1 int
>>-fix width   : 1 float, 1 int
>>               -------- +
>>               26 bytes x 1000 x 50 = 1.3MB
> 
> 
> String is at least 12 byte, plus alignment issues this makes 40 byte.
> Nevertheless, that does not describe what you are seeing...

Well you miss the memory allocation for a InsetText which at least
has 1 (one) paragraph allocated inside it and I guess it's that which
makes the bloat. We most probably won't need a full blown InsetText
for "normal" tabular cells only for cells with fixed width which have
line-breaking and multiple paragraphs, but I think LyX should be misused
as spreadsheat and having that big of tabluars is some sort of missuse,
but anyway there is surely a lot of things to optimize in 
InsetText/Tabular. My chant is "first make it work/then make it 
fast(better)".

            Jug

-- 
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Mitterstrich 151/A      Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39050 Steinegg        Web:     http://www.lyx.org/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Reply via email to