Hi there!
I was wondering about the speed of PHP recently (5 mins ago).
So, can someone tell me how efficient PHP is with large scripts? Let's say, you have 100k of code distributed over 10 included files and 5 classes... Is there a major drawback in performance?
I mean, if i understood everything, PHP has to open and interpret ALL scripts on EVERY hit to the page utilizing these, right? There is not JIT compiling or caching done whatsoever?
I believe this HAS to be a serious hit on performance espacially if numerous accesses take place at the same time (well visited pages, e.g.), as parsing sourcecode is very time-consuming (i presume).
Are there any serious comparisons on that matter, perhaps against JSP (you know they're compiled on first access) or has anyone done some research in that direction? Because i'd really like to know if my code or e.g. the DB-connection is slowing down my pages!
And besides, has anyone (i mean the php developers in the first place) ever thought of compiling PHP-Scrips on the fly like JSP does? I'd expect that to be an enourmous boost to speed, but what do i know... :-/
Thx in advance for your uncountable replies! =)