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

QNetworkRequestFactory creation takes a long time

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes