Re: cvs: pear /Net_Finger Finger.php /Net_Whois Whois.php
| From: | Martin Jansen | Date: | Sun, 18 Nov 2001 18:59:23 +0000 |
| Subject: | Re: cvs: pear /Net_Finger Finger.php /Net_Whois Whois.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-1360@lists.php.net to get a copy of this message | ||
On Sun, 18 Nov 2001 12:59:19 -0500, Jon Parise wrote:
>On Fri, Nov 16, 2001 at 07:41:00AM +0100, Stig S. Bakken wrote:
>
>> > mj Thu Nov 15 16:09:04 2001 EDT
>> >
>> > Modified files:
>> > /pear/Net_Finger Finger.php
>> > /pear/Net_Whois Whois.php
>> > Log:
>> > * PEAR.php is already included by Net/Socket.php -> no need to do that
>> > also here.
>> > # Should save same execution time.
>>
>> If the file is already "required", require_once on it again returns
>> immediately, you can probably count the overhead in CPU cycles.
>> However, you should never assume anything about what other packages
>> include, but always be explicit about what your package requires (that's
>> some of the point with require_once). If Net_Finger extends PEAR, it
>> should require it too.
>
>Agreed. It doesn't make sense to obscure the dependencies just
>to save a clock cycle or two.
For the notes: I already reverted my patch yesterday.
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/