What is the performance curve of the file that will consume an Xmlhttprequest via GET according to the date volume sent?

Asked

Viewed 28 times

1

I wonder if there is a date volume with better performance in a Xmlhttprequest request via GET or if the performance is always directly proportional to the date amount

 var request = new XMLHttpRequest();
        request.open('GET', 'arquivo.php?data=muita_data', true);
        request.onload = function() {
         if (this.status >= 200 && this.status < 400) {
        var resp = this.response;
      }
        }
        request.send();

Graphically, my question is whether there is this, assuming that sending 3kb would be the best situation:

inserir a descrição da imagem aqui

Thank you

  • 1

    Data via GET are sent through the URL and therefore follow the size limitations of the URL.

  • Thank you, I would like help for performance questions... good the answer of 2kb p/all, but wanted to understand the performance curve for date size; think better to change the question?

  • Yes, mainly highlighting how you want to analyze performance.

  • Thank you, I tried to make it clear

  • 1

    Something that may be important for your analysis: URL is an opaque value and not reflects the application then by definition it should not interfere in the performance of the same.

  • I understand, I refer in the question to the consumption performance of the file that will be opened (that will receive the request)... if this is not clear, I will probably have to reformulate the question

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.