Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33073

Selecting text is slow if selection is synced with clipboard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 17.0.0-rc1, Qt Creator 18.0 (master branch)
    • Editors
    • None
    • Linux/Wayland
    • 1369bec9e (17.0)

    Description

      Some platform context: Linux has both a selection and a clipboard, and on e.g. KDE it is possible to sync them. That means that selected text ends up on the clipboard.

      https://codereview.qt-project.org/c/qt-creator/qt-creator/+/637170 added some watching logic for the clipboard.  When selecting a block of text, that causes (for a large enough selection) hundreds of hits. Those hits all try to retrieve the text (only to check if it's) empty, which in turn causes some UI stutter (at some point we end up polling the clipboard, wich takes time).

       

      Could we maybe try to debounce the checking?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes