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

QProcess adds 100ms delay on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.8.0
    • Core: I/O
    • None

    Description

      Windows implementation of QProcess appear to use a timer that fires every 100ms. See qprocess_win.cpp, NOTIFYTIMEOUT and its uses. This means that using QProcess for busy interaction with something is slow. For one example, I've tried to send 200 command to GDB running under QProcess. Each command executes instantly and on Linux, total run time was ~150 ms from sending the first one until the last one is done. On Windows, the time is roughly 45000ms, so that's 200ms per each command – which looks like 100 ms per each line that gdb outputs.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              vladimir_prus Vladimir Prus
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes