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

QNetworkRequestFactory creation takes a long time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.7.0 Beta3
    • Network
    • None

    Description

      Hi,

      Doing a simple benchmark.

      QElapsedTimer timer;
      timer.start();

      factory = std::make_shared<QNetworkRequestFactory>(url);

      qDebug() << u"Main: The operation took"_s << timer.elapsed() << u"milliseconds"_s;

       

      The operation takes 50ms on first pass.

      Any subsequent call takes 0ms. So it seems the creation of the first factory is slow. Any subsequent one works as expected.

      Attachments

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

        Activity

          People

            manordheim Mårten Nordheim
            reg31 Regis Duflaut
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes