Re: Re: [PEPr] Comment on Networking::Monitor

From: Date: Thu, 09 Dec 2004 21:22:07 +0000
Subject: Re: Re: [PEPr] Comment on Networking::Monitor
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34986@lists.php.net to get a copy of this message
Hi Bertrand, Net_Monitor::stateDiff() does not operate at (N**2). It is actually quite efficient to the task it has to accomplish and the types of arrays it is comparing. If you have an idea for how to make this method more efficient, I would be happy to review your code and benchmarks. Best, Robert bertrand Gugger wrote:
Hi all of you, Joshua Eichorn wrote:
Bertrand Mansion wrote:
Joe Stump wrote:
It depends on the use. foreach() for small arrays is supposed to be faster than while(list() each()).
Just to remind the discussion was to do it order(N) better as order(N**2) times, so it's no matter the few % differences between foreach() and while(list() each()) à+


« previous php.pear.dev (#34986) next »