>>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:

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

In the example we had, a 50x50 array consumes 1.2M (50x50x500). This
probably accounts for most of the memory bloat we have been seeing!

Would it be possible when copying a paragraph to undo (or when not
editing it) to "tighten" it to use a minimal amount of memory? Or
would that cause a lot of fragmentation?

I'll do experiments tomorrow if nobody beats me to it. What was the
initial reason for the reserve(500)? speed?

JMarc

Reply via email to