Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. HTTPS POST performance

HTTPS POST performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtnetworkhttps posthttpsperformancepost
5 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wrekler
    wrote on last edited by
    #1

    I've an app that send HTTPS POST requests to a known address with known datas. I found out that first request take more time than the others!
    So now I fire 1 request at startup so within 1 minute I can send faster all other requests. Right now it takes 1000ms +-50ms to get a response, I'd like to know if I can optimize my code even more to get a better result!
    Searching on google I found this: http://wiki.qt.io/QtNetwork_performance

    raven-worxR 1 Reply Last reply
    0
    • W wrekler

      I've an app that send HTTPS POST requests to a known address with known datas. I found out that first request take more time than the others!
      So now I fire 1 request at startup so within 1 minute I can send faster all other requests. Right now it takes 1000ms +-50ms to get a response, I'd like to know if I can optimize my code even more to get a better result!
      Searching on google I found this: http://wiki.qt.io/QtNetwork_performance

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @wrekler
      to what server do you send this request?

      Searching on google I found this: http://wiki.qt.io/QtNetwork_performance

      and did you try any of the suggestions yet?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      W 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @wrekler
        to what server do you send this request?

        Searching on google I found this: http://wiki.qt.io/QtNetwork_performance

        and did you try any of the suggestions yet?

        W Offline
        W Offline
        wrekler
        wrote on last edited by
        #3

        @raven-worx

        to what server do you send this request?

        How relevant is knowing the server?

        and did you try any of the suggestions yet?

        No, I really don't know how implement some of them because, as I see, all links point to old BUG reports.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          @wrekler said in HTTPS POST performance:

          How relevant is knowing the server?

          It is relevant because:

          • It might be sleeping if for example it's an heroku free tier that hasn't been used for some times. Therefore the first query will have to wait for the server to awaken thus it will be longer.
          • It might require authentication which takes some time on first query to setup and allow to process.
          • It might need to query some slow to start resource to answer your question
          • etc.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          W 1 Reply Last reply
          2
          • SGaistS SGaist

            Hi and welcome to devnet,

            @wrekler said in HTTPS POST performance:

            How relevant is knowing the server?

            It is relevant because:

            • It might be sleeping if for example it's an heroku free tier that hasn't been used for some times. Therefore the first query will have to wait for the server to awaken thus it will be longer.
            • It might require authentication which takes some time on first query to setup and allow to process.
            • It might need to query some slow to start resource to answer your question
            • etc.
            W Offline
            W Offline
            wrekler
            wrote on last edited by wrekler
            #5

            @SGaist said in HTTPS POST performance:

            Hi and welcome to devnet,

            @wrekler said in HTTPS POST performance:

            How relevant is knowing the server?

            It is relevant because:

            • It might be sleeping if for example it's an heroku free tier that hasn't been used for some times. Therefore the first query will have to wait for the server to awaken thus it will be longer.
            • It might require authentication which takes some time on first query to setup and allow to process.
            • It might need to query some slow to start resource to answer your question
            • etc.

            Oh, I see. Well it is not a my server, it is a thirdy party server, so I can't answer to all that question. All I know is:

            • It is hosted on akamai.com
            • Acqtually it require some authentication data that I give with POST data

            So I think I can't optimize requests server side, all can I do is caching DNS/TCP/SSL requests but I don't know if Qt 5.11.2 actually implements all that suggestions

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved