PHP注释占用服务器时间吗? [英] Do php comments take server time?

查看:66
本文介绍了PHP注释占用服务器时间吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力加快当前正在处理的网站的响应时间。谁能告诉我php解析器是否花时间查看注释块中的代码,还是完全被忽略了?我问,是因为我想知道是否删除许多大段注释代码是否会改善网页呈现时间?谢谢。

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.

推荐答案

它们被忽略了。 PHP标记生成器实质上就是跳过它们。

They're ignored. The PHP tokenizer essentially jumps right over them.

这篇关于PHP注释占用服务器时间吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆