Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-40177

Exporting a page which contains a data: image to a word document runs in N^2 time

    • 0
    • 4
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      When a page with a data: image is rendered by the word document exporter the data: is analyzed in N^2 time.

      Steps to reproduce:

      • Create a new page
      • Add a "roadmap" macro, default configuration
      • Save the page
      • Export the page as a doc file

      Expected behaviour:

      • The page is exported quickly

      Actual behaviour:

      • The page takes upwards of 45 seconds to render, in a purely CPU bound operation. If a user attempts to reload the page, then now you've got two problems.

      Note that this isn't an issue with the roadmap macro, that's just an easy way to create a data: image.

            [CONFSERVER-40177] Exporting a page which contains a data: image to a word document runs in N^2 time

            metrics added a comment - - edited

            Note that the actual N^2 time comes from the bug raised at https://ecosystem.atlassian.net/browse/PLUGWEB-316

            This is a suggestion to change the ordering of an if statement, to check for data: before checking for other URLs, as checking for data: is practically free.

            metrics added a comment - - edited Note that the actual N^2 time comes from the bug raised at https://ecosystem.atlassian.net/browse/PLUGWEB-316 This is a suggestion to change the ordering of an if statement, to check for data: before checking for other URLs, as checking for data: is practically free.

              Unassigned Unassigned
              hmurn metrics
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: