commit: Speed up loading loading of documents with TOC

From: <msevior_at_physics.unimelb.edu.au>
Date: Tue Mar 29 2005 - 17:01:02 CEST

CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: fl_SectionLayout.cpp
CVS: ----------------------------------------------------------------------
Substantial speed up of loading a large document with a TOC.

This should be backported.

The problem was that during a load, a TOC grows as more content gets
appended.
This moves all the lines and tables in the document. When tables that span
more than one page get moved that have to be "re-broken" and re-laidout
across the pages.

This introduces a substantially overhead that grows quardratically with
document size.

This patch (which should be backported) prevents the TOC from being
re-formatted until the entire document is loaded.

Martin
Received on Tue Mar 29 17:09:58 2005

This archive was generated by hypermail 2.1.8 : Tue Mar 29 2005 - 17:10:01 CEST