I am working on speeding up the response time of the website I'm currently working on. Can anyone tell me if the php parser takes the time to look at the code within comment blocks, or is it completely ignored? I ask because I'm wondering if removing many large blocks of commented code would do anything to improve page rendering time. Thanks.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
The parser has to see it; that's how it knows where the comment begins and ends. It's not put into the bytecode though, so it's only seen once per process.
if you use APC(you really SHOULD) the bytecode is stored in memory(big win) so you don't even have to think about it. Although I assume the penalty is subpar.