[PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread mike
I am trying to figure out a strategy for multiple output formats on a site, and it seems like I can have functions defined by default, but have them defined -after- I've included the targetted format first. However that would require file1.php: function foo() {} file2.php

Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Kenan Sulayman
Hello Mike! Depending on how you'd define expensive, it may variate. Normally, on websites function_exists(x) ain't expensive. Altrought function_exists needed 0.77009201049805 seconds to execute. Do you think, that's pretty expensive ? Your, -- (c) Kenan Sulayman Freelance Designer and

Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Mikko Koppanen
On Wed, Mar 4, 2009 at 1:07 PM, Kenan Sulayman kur...@kkooporation.dewrote: Hello Mike! Depending on how you'd define expensive, it may variate. Normally, on websites function_exists(x) ain't expensive. Altrought function_exists needed 0.77009201049805 seconds to execute. Do you think,

Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Kenan Sulayman
Update: Reached: Average: 1.3338460335041E-5 seconds / 817542. Shape: Average: ( $seconds ) seconds / ( $iterations ). -- (c) Kenan Sulayman Freelance Designer and Programmer Life's Live Poetry 2009/3/4 Kenan Sulayman kur...@kkooporation.de Hello Mike! Depending on how you'd define