Hi.
I've two suggestion to improve speed of curl connection.
- Class Transport constructor should call
gethostbyname() if the host isn't IP. It will resolve hostname to IP and it's faster if you avoid DNS resolve every time.
$this->host = filter_var($ip, FILTER_VALIDATE_IP) ? $host : gethostbyname($host);
- Enable gzip on cURL curl_setopt($c, CURLOPT_ENCODING, '')
Hi.
I've two suggestion to improve speed of curl connection.
gethostbyname()if the host isn't IP. It will resolve hostname to IP and it's faster if you avoid DNS resolve every time.