I use php curl to interact with the data database of the counterparty
curl
I use the Google browser to see an item running for at least 3 seconds
I wonder if it"s a curl problem
because I think all the others are ms units. It"s not too slow.
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
I wrote a function
in this paragraph, so when I need any API, I will enable it
so sometimes it may take three to five
to take a long time.
is there any other way to make it faster?!