Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1642

AFP/GOCA: Performance Hot Spot in AbstractGraphicsDrawingOrderContainer.getDataLength()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Resolution: Unresolved
    • 0.95
    • None
    • image/unqualified
    • None
    • Operating System: All
      Platform: All
    • 46883

    Description

      I've just stumbled over a serious performance hotspot in the GOCA part when rendering a DataMatrix barcode using Barcode4J. I haven't had time, yet, to investigate if other graphics also exhibit that. Here's some profiling data:

      org.apache.fop.afp.goca.AbstractGraphicsDrawingOrderContainer.getDataLength()
      Time: 277'609ms (51%)
      Own Time: 100'437ms (18%)
      Invocation Count: 178'560

      GraphicsBox.getDataLength() also seems to be involved here.

      Just noting this mostly for myself (to revisit later).

      Attachments

        1. b46883.patch
          3 kB
          Andreas L. Delmelle
        2. afp_goca_hotspot.patch
          2 kB
          Andreas L. Delmelle

        Activity

          People

            Unassigned Unassigned
            jeremias@apache.org Jeremias Maerki
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: