execution time of ';'
| From: | Andy Pieters | Date: | Sat, 30 Jul 2005 18:48:21 +0000 |
| Subject: | execution time of ';' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-219687@lists.php.net to get a copy of this message | ||
Hi all
We develop our software with built-in debug handlers that are very talkative.
Each class registers itself to a central debug handler. When a conditional
define NODEBUG is set, that debughandler just does a return null but
obviously it takes time to perform that call.
We are thinking of doing a search/replace on the source to replace all
$this->debug('...'); with a ; because if I would replace it with a # it would
generate errors in cases like this:
if(conditions ....)
$this->debug('something...');
So here is the question:
Are there any reasons against doing this kind of replace, or is anyone aware
of a better solution?
With kind regards
Andy
--
Registered Linux User Number 379093
Now listening to Virtual Zone - Virtual Zone
amaroK::the Coolest Media Player in the known Universe!
Cockroaches and socialites are the only things that can
stay up all night and eat anything.
Herb Caen
--
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
under the GPL2 and that are meant for use with a
php cli binary:
http://www.vlaamse-kern.com/sas/
--
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]