Re: Re: [PEPr] Comment on Networking::Monitor
| From: | Bertrand Mansion | Date: | Thu, 09 Dec 2004 23:02:58 +0000 |
| Subject: | Re: Re: [PEPr] Comment on Networking::Monitor | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-34993@lists.php.net to get a copy of this message | ||
Robert Peake wrote:
>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.
Did you consider using array_diff, array_merge or array_diff_assoc or other
array functions :
<http://www.php.net/manual/en/function.array-diff-assoc.php>
They might suit your needs and be a lot faster :)
Bertrand Mansion
Mamasam