Commit (STABLE): Re: commit: Speed up loading loading of documents with TOC

From: J.M. Maurer <j.m.maurer_at_student.utwente.nl>
Date: Sun Apr 03 2005 - 15:23:10 CEST

Backport: Substantial speed up of loading a large document with a TOC.
(msevior)

CVS:
----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: Tag: ABI-2-2-0-STABLE
CVS: fl_SectionLayout.cpp
CVS:
----------------------------------------------------------------------

On Wed, 2005-03-30 at 01:01 +1000, msevior@physics.unimelb.edu.au wrote:
>
> 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 Sun Apr 3 15:22:42 2005

This archive was generated by hypermail 2.1.8 : Sun Apr 03 2005 - 15:22:42 CEST