Re: Is gethostbyaddr() slow?

From: Date: Thu, 04 Aug 2005 15:40:15 +0000
Subject: Re: Is gethostbyaddr() slow?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-220011@lists.php.net to get a copy of this message
On 8/4/05, Kristen G. Thorson <kthorson@allegroconsultants.com> wrote: > I can say from personal experience that gethostbyaddr() and > gethostbyname() can seem almost randomly slow, depending on machine, OS, > software, who knows. I'm not smart enough to figure out the reason why > it can vary so much on machines with nearly the same configuration, but > I can tell you that it works perfectly fast most of the time. Then > there's that other 5% where something makes it slow as molasses. > > I have two machines that are so similar it's not funny, but > gethostbyname() takes 1/10 s on one, and 5 s on the other. I have yet > to figure out what's the difference between them that causing this. > > > kgt > > > > Dotan Cohen wrote: > > >Hi all, I just discovered the gethostbyaddr() function. By reading the > >user contributed notes, I get the impression that either this function > >may cause performance problems, or a user-contributed function based > >upon it may be slow. So, is gethostbyaddr() slow? Is it dangerous? > >Thanks! > > > >Dotan Cohen > >http://lyricslist.com/lyrics/artist_albums/56/bangles.php > >The Bangles Song Lyrics > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#220011) next »