Q
Q
Qwake2022-03-24 21:48:43
Node.js
Qwake, 2022-03-24 21:48:43

How can you maximize code speed?

You need to make the fastest possible code that will send http / 1.1 requests to the server (Any methods, asynchronous, code streams, optimization, etc.). The request module is required, example:

var request = require('request');

function flood() {
request.get({
url: ' https://www.google.com ',
})
}

let i = setInterval(() => {
flood();
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question