[PHP-DEV] compiled modules VS. code in php

2001-11-19 Thread colin mcdonald

Hi, I apologize in advance if this is not the place to ask. I just 
figured, I'd get a better answer from this group.

Is there a performance increase by compiling your code into php (either 
dynamic or static) as opposed to writing complex code in php.

Note: this bit of code would be used by every request in the 
application, reads many files and does a lot of string parsing.

thanks,

colin

-- 
Colin McDonald - [EMAIL PROTECTED]

home: http://nexus.carleton.ca/~colin/
  public key: http://nexus.carleton.ca/~colin/pubkey.asc
fingerprint: http://nexus.carleton.ca/~colin/fingerprint.asc



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] compiled modules VS. code in php

2001-11-19 Thread Zeev Suraski

Generally, a perfect C implementation will always be quicker than a PHP 
implementation, because the scripting engine has its overhead.  However, 
whether or not you write perfect C code is a different question :)

Zeev

At 16:51 19/11/2001, colin mcdonald wrote:
Hi, I apologize in advance if this is not the place to ask. I just 
figured, I'd get a better answer from this group.

Is there a performance increase by compiling your code into php (either 
dynamic or static) as opposed to writing complex code in php.

Note: this bit of code would be used by every request in the application, 
reads many files and does a lot of string parsing.

thanks,

colin

--
Colin McDonald - [EMAIL PROTECTED]

home: http://nexus.carleton.ca/~colin/
  public key: http://nexus.carleton.ca/~colin/pubkey.asc
fingerprint: http://nexus.carleton.ca/~colin/fingerprint.asc



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] compiled modules VS. code in php

2001-11-19 Thread jimmy elab

Zeev Suraski wrote:
 
 Generally, a perfect C implementation will always be quicker than a PHP
 implementation, because the scripting engine has its overhead.

It's my impression that an average PHP script will run faster on a
heavily loaded apache server than a compiled executable will get loaded!

I've got no exact data confirming this, it's just that I noticed that my
sites went consederably faster on PHP than in compiled form.

Take this as a compliment, guys!

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]