>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> I have done some tests with the type of container used to store
Lars> the paragraph contents in LyXParagraph.

That's a good idea.

Lars> I have after some testing settled on using vector. Compared to
Lars> char* we get a lot of help from useing a std::container instead
Lars> of handling all the memory allocation and insertions ourselves.
Lars> Deque is very similar to vector, but can have some better
Lars> complexity when it comes to insertion and end and beginning.

I think using a container is good and the particular container is
probably not relevant for our use.

Lars>  Memory: the footprint of vector is a bit larger than char*, but
Lars> not by much, if think it is about 500k or something.

What do you mean? Where does this bloat come from? Will it become
worse with bigger documents? This worries me a bit...

JMarc

Reply via email to