See a passage in the book:
Typically, the JSP engine checks to see if the servlet for the JSP file already exists, and whether the JSP modification date is older than the servlet. If the modified date of the JSP is older than the modified date of its generated servlet, the JSP container assumes that the JSP modification date has not changed, and that the resulting servlet's modification date still matches the contents of the JSP. This process is more efficient and therefore faster than other scripting languages, such as PHP.
What is the process of PHP, please?
Reply content:
See a passage in the book:
Typically, the JSP engine checks to see if the servlet for the JSP file already exists, and whether the JSP modification date is older than the servlet. If the modified date of the JSP is older than the modified date of its generated servlet, the JSP container assumes that the JSP modification date has not changed, and that the resulting servlet's modification date still matches the contents of the JSP. This process is more efficient and therefore faster than other scripting languages, such as PHP.
What is the process of PHP, please?
PHP is not a process, because PHP is compiled every time the request, so it is no longer necessary to determine whether the code is updated.
In addition, the compilation of PHP and JSP also exist very different, PHP because each time will compile, in order to speed up the compilation speed, remove the code optimization process, its compile faster than the JSP comes faster, but also can not generalize, compare JSP is a compile long-term use, and PHP is not. If the comparison, can only say that each has its own unique characteristics.