https://issues.apache.org/bugzilla/show_bug.cgi?id=50636

           Summary: O(n^2) code for adding  new pages
           Product: Fop
           Version: 1.1dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: fo tree
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: mkoeg...@auto.tuwien.ac.at


Adding a new page causes to iterate over all existing page sequnces and count
their number of pages.

If there is a large number of page sequences, this can take a significant
percentage of the fop running time.

I have the attached workaround in my tree for some time:
It caches the number of pages in the page sequences, so that adding a new page
is only O(1).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to