Does using of PhpDoc improve performance of IDE
Does using of PhpDoc improves performance of IDE?
I mean, for example, does IDE try to analyze/find function return type even if function has PhpDoc with return type, or IDE just reads PhpDoc comment and doesn't analyze code?
请先登录再写评论。
Hello,
In general: yes, in most cases using PHPDoc helps to improve the performance as indeed we bypass some code analysis and take values directly from the documentation comment.
Of course it really depends on a particular project, used code, comments et cetera but there are many cases where PHPDoc actually helps to get some things quicker.
What happens if the documentation is incorrect?