|
|
Re: Neat board, but php not perl... [message #1236 is a reply to message #952] |
Tue, 26 March 2002 17:25 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
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.
FUDforum Core Developer
|
|
|
Re: Neat board, but php not perl... [message #1237 is a reply to message #1236] |
Tue, 26 March 2002 17:33 |
Anonymous
|
|
|
|
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... [message #1238 is a reply to message #1237] |
Tue, 26 March 2002 17:58 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
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.
FUDforum Core Developer
|
|
|