On 16-Apr-01 Alexander Skwar wrote:
> Hello!
> 
> In a mysql_connect() it is possible to specify a path to the socket which
> should be used for communicating with MySQL.
> 
> Now, when I connect thru a socket, is the datatransfer between PHP and MySQL
> faster than when I connect via a (loop-)network?  I would assume so, because
> with a socket, there's not the network layer in the way which has to be
> taken care of.
> 
> Is this correct?
> 

Yes, from my memory of the mysql list; AF_INET is 7% slower then AF_UNIX in
data thru-put. Plus you have to add in the connection build & tear-down time. 

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to