Re: [PHP] PHP or CGI in C/C++
You can install Zend Optimizer from www.zend.com is free but with comercial license. Perform some optimizations in your code to not compile the same code in each request. Un saludo, Danny John Manko <[EMAIL PROTECTED] Para: Decapode Azur <[EMAIL PROTECTED]> >cc: [EMAIL PROTECTED] Asunto: Re: [PHP] PHP or CGI in C/C++ 01/08/2003 08:45 i did a quick google, and found the following. hope it helps http://phpcomplete.com/articles.php?sec=readArticle&id=306 http://www.php-accelerator.co.uk plus, there is something called PHP bcompiler (byte compiler). I dont know the details of any of these, but should help. maybe others can expand on the details. - John Manko Decapode Azur wrote: >>I would expect compiled C/C++ to be faster as there is no need for >>the code to be interperated and compiled on each request. >> >> > > >Is it possible to compile PHP to improve the speed execution ? > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP or CGI in C/C++
i did a quick google, and found the following. hope it helps http://phpcomplete.com/articles.php?sec=readArticle&id=306 http://www.php-accelerator.co.uk plus, there is something called PHP bcompiler (byte compiler). I dont know the details of any of these, but should help. maybe others can expand on the details. - John Manko Decapode Azur wrote: I would expect compiled C/C++ to be faster as there is no need for the code to be interperated and compiled on each request. Is it possible to compile PHP to improve the speed execution ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP or CGI in C/C++
> I would expect compiled C/C++ to be faster as there is no need for > the code to be interperated and compiled on each request. Is it possible to compile PHP to improve the speed execution ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP or CGI in C/C++
> Greetinx, Greetinx to you to. > I'm a newbie and wondering which PHP script or CGI in C/C++ generally can > run/respond faster via http from the same server doing the same tasks. CGI is inherently slow. The way I understand it, php as CGI will probably be pretty much the same speed as C/C++ as CGI. PHP with mod_php should be faster than C/C++ as CGI. Compiling a server module is a complicated business, so you would probably want to avoid trying to compile a C/C++ webapp as a server module unless you have lots of experience (and I doubt you would be asking this question if you have that much experience. A book you might find useful in this context is Chris Radcliff's Perl for the Web. (Perl is one of PHP's grandpappies, so much of the discussion will apply to PHP.) > I appreciate your comments in advance. I made no comments in advance, but you're welcome anyway. ;-P -- Joel Rees, programmer, Systems Group Altech Corporation (Alpsgiken), Osaka, Japan http://www.alpsgiken.co.jp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP or CGI in C/C++
On Jul 31, 2003, "David Nicholson" claimed that: |Hello, | |This is a reply to an e-mail that you wrote on Thu, 31 Jul 2003 at |13:38, lines prefixed by '>' were originally written by you. |> Greetinx, |> I'm a newbie and wondering which PHP script or CGI in C/C++ |generally |> can |> run/respond faster via http from the same server doing the same |tasks. |> I appreciate your comments in advance. | |I would expect compiled C/C++ to be faster as there is no need for |the code to be interperated and compiled on each request. You will |need to do your own benchmarking to see if the difference bothers you |though. |David. |-- Usually, though, the speed difference you pick up or lose from one instruction set is miniscule compared to the time it takes for the html to speed across the Internet. Asking about speed of a script on one language against another is a moot point. If you ask "is it faster to save a cookie on the user's machine or save it in a database," you'd get an answer that would probably help you design a faster site. If you have a site getting enough hits per second to actually make a difference, then there are some other speed considerations before getting to the output. In this case, you'd have to ask yourself if the speed picked up on the output is worth the time difference in the development cycle. Jeff -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP or CGI in C/C++
Hello, This is a reply to an e-mail that you wrote on Thu, 31 Jul 2003 at 13:38, lines prefixed by '>' were originally written by you. > Greetinx, > I'm a newbie and wondering which PHP script or CGI in C/C++ generally > can > run/respond faster via http from the same server doing the same tasks. > I appreciate your comments in advance. I would expect compiled C/C++ to be faster as there is no need for the code to be interperated and compiled on each request. You will need to do your own benchmarking to see if the difference bothers you though. David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php