Hi, I'm an experienced programmer for North Carolina but I'm new to PHP.
I've Googled PHP compilation and I think it's in the next release? When will that happen?
Is PHP the fastest web language (except for straight C extensions to Apache)?
How much faster is PHP than Ruby on Rails?
I need the absolute fastest database driven website (to be "snappy") but I don't want to write C/C++ ISAPI.
Pete
Wesley Chapel, NC
Newby: Can PHP be compiled? Is PHP fastest web language?
Moderator: General Moderators
- remoteportal
- Forum Newbie
- Posts: 1
- Joined: Sat Feb 20, 2010 8:10 am
- Location: Wesley Chapel, NC
Re: Newby: Can PHP be compiled? Is PHP fastest web language?
The bottleneck will almost never be the programming language in web applications. The most common problem source are database and client-side optimizations. The choice of the language will not make much of a difference in most cases, so go with what you are most comfortable with.
PHP has several byte-code caches (such as APC, eAccelerator) which you can use to reduce overhead by PHP. Look into those if you are worried by PHP performance. Also notice that Ruby On Rails is a framework, so you can't compare it with baseline PHP (native instructions will always outperform abstractions).
PHP has several byte-code caches (such as APC, eAccelerator) which you can use to reduce overhead by PHP. Look into those if you are worried by PHP performance. Also notice that Ruby On Rails is a framework, so you can't compare it with baseline PHP (native instructions will always outperform abstractions).
Re: Newby: Can PHP be compiled? Is PHP fastest web language?
PHP can be compiled - Facebook are doing this
There is a topic about their compiler in "General Discussions".
And no, it's not the fastest one
But as pytrin said, hardly the PHP itself will be the slow part of your application. Unless you are not facebook and didn't optimize already everything else (they had a long way of optimizing before compiling PHP)
By the way, there are web framework for C++
example
And no, it's not the fastest one
By the way, there are web framework for C++
example