-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
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, '')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels