Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8389

slow painting of long highlighted lines due to QTextEngine::format()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.x
    • 4.6.1
    • None
    • Linux 2.6.31-19
      Qt 4.6.1
      KDE 4.4.0
      Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller
      4GB Ram, Intel Centrino Duo
    • I10c9fca72343f46db24b1d4f519f7747188d4009 I89c18b804111edfab6254442cbee33da39d1a273

    Description

      The Kate editor for KDE has serious performance problems with files that contain very long lines with highlights. Attached you find a callgrind output and a file with such a long line.

      As you will see, more than 70% is spent in QTextEngine::format() alone. Can this be improved?

      If you need more information, please let me know.

      Attachments

        1. callgrind.out.relwithdebinfo.bz2
          185 kB
          Milian Wolff
        2. long_lines_profile.tar.bz2
          1.24 MB
          Milian Wolff
        3. qt-textdocument-boundaryAt_and_format-bottlenecks.tar.bz2
          178 kB
          Milian Wolff
        For Gerrit Dashboard: QTBUG-8389
        # Subject Branch Project Status CR V

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            milianw Milian Wolff
            Votes:
            8 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: