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

Make QNetworkReply::downloadProgress() less chatty

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.0.0 Beta 1
    • 4.7.3
    • Network
    • None
    • All

    • d6d9c8bf3245ec3d1ff05ae45d54baac64d76cec, 46e40214cfd62c935a20cddc7e9ae6fb45ba1884

    Description

      For Qt 5.0, we should consider reducing the frequency with which downloadProgress() fires.

      The problem is that it currently fires for every packet received from Layer 2, at least on desktop Linux. Which means that every 1000 bytes of so, an application's slot is (say) updating the progress bar, or updating internal variables about data downloaded. This sounds like excessive updates to the application code, particularly on mobile where every bit of CPU and graphics load is important. Additionally, on mobile devices, packets may arrive at the lower layers in sizes of a few hundreds bytes due to cellular data protocols.

      Certainly, a workaround is for the application itself to throttle calling its slots/worker functions in response to a signal, but that would be a bit messy.

      Attachments

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

        Activity

          People

            shkearns Shane Kearns
            simathur Siddharth Mathur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes