Use Syntax Does alternative change performance? [duplicate]

Posted on

Question :

Using the Alternative Syntax for Control Structures brings huge changes in the number of code lines of a project, but is there any change in performance?


Answer :

This would hardly have any effect on performance. PHP and other script languages already lose performance (compared to compiled ones) because they are interpreted. Performance should be the when you find some bottleneck in the system (slowness), but first it is necessary to measure this, otherwise how will you know?


The amount of extra script is too small (it can be said to be insignificant), so that the processing will be quick and with no visible changes.


Leave a Reply

Your email address will not be published. Required fields are marked *