Home > Backend Development > PHP Tutorial > php 注释 会不会 影响 效率 性能

php 注释 会不会 影响 效率 性能

WBOY
Release: 2016-06-23 13:19:45
Original
1052 people have browsed it

 注释是有影响,因为注释会使得文件体积大一点点,加载文件时会占用一点IO,仅此而已。编译器会忽略注释的。但现在硬盘接口速率都可以达到6G了,内存频率都可以达到了2400MHZ了,这个完全可以忽略的。

php引擎根本不对空行和注释进行解析,直接忽略掉。它们不参与计算代码行数也不参与程序的执行,对程序执行效率也没有影响


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template