|
What for? If you at least use mysql database your delays on connecting, sending queries and reading results will be much, much greater than those milliseconds you would save optimizing your php code. Of course you can make any code one byte shorter and one cpu tick faster, but is it really necessary to fight for extra milliseconds if your sql query executes 0.5 seconds? In this case you should optimize your tables and your queries instead. And if the problem of saving milliseconds is really actual, if e.g. you are having 1000 hits/second still it should not be optimized by means of php because it is called "highload" and you should use quite other solutions like light-weight frontend webserver serving static files.
|