Re: Neat board, but php not perl... |
Tue, 26 March 2002 12:58 |
|
Actually PHP uses perl regular expression library for its regex so the speed is virtually the same, unless of course you prfe-compile the regular expression.
As for speed, I think that depends entirely on the application itself and how the code is used. Both languages have their own optimization tricks that can be used to speed up code. In addition there are a number of packages that optimize PHP, such as APC for example which caches the interpreted PHP code in memory so it does not need to be interpreted again and Zend Optimizer, which runs the code through several optimization routines before executing the code.
I think I speed was the ONLY consideration we'd all probably be using C anyway since both PHP & Perl are WAY slower then C.
|
|
Re: Neat board, but php not perl... |
Tue, 26 March 2002 12:33 |
|
My experience is that mod_perl is faster than PHP. Also, in Perl you can have several language constructions like pre-compiled regular expressions which can really speed up your code. BTW, i'm more of a non-html-embedded kind of guy, but that's very subjective i guess.
|
|
Re: Neat board, but php not perl... |
Tue, 26 March 2002 12:25 |
|
Perl is indeed a more powerful language in general, however PHP, which has been designed for web development in most cases is better then Perl for such a task. In most cases PHP will be faster then perl for web stuff.
|
|
|
|