Comments on: 3 simple steps to boost performance of a PHP web application https://systemsarchitect.net/2013/05/23/3-simple-steps-to-boost-performance-of-a-php-web-application/ Sat, 23 Apr 2016 06:20:11 +0000 hourly 1 http://wordpress.com/ By: Lukasz Kujawa https://systemsarchitect.net/2013/05/23/3-simple-steps-to-boost-performance-of-a-php-web-application/comment-page-1/#comment-131 Thu, 20 Jun 2013 09:02:12 +0000 http://systemsarchitect.net/?p=768#comment-131 I guess that depends on settings. If you have profiling ON by default than you can expect trouble. If you have the remote debugging on there is a security issue. Appart fron that I wouldn’t think so but I have no data to support it so it’s only an assumption:-)

Like

]]>
By: mixdev https://systemsarchitect.net/2013/05/23/3-simple-steps-to-boost-performance-of-a-php-web-application/comment-page-1/#comment-130 Tue, 18 Jun 2013 17:08:54 +0000 http://systemsarchitect.net/?p=768#comment-130 Won’t some overhead kick-in with XDebug on production?

Like

]]>
By: Lukasz Kujawa https://systemsarchitect.net/2013/05/23/3-simple-steps-to-boost-performance-of-a-php-web-application/comment-page-1/#comment-129 Fri, 24 May 2013 09:14:46 +0000 http://systemsarchitect.net/?p=768#comment-129 Good point, thank you. I used to blindly copy that function for years.

Like

]]>
By: Mariusz Kujawski https://systemsarchitect.net/2013/05/23/3-simple-steps-to-boost-performance-of-a-php-web-application/comment-page-1/#comment-128 Fri, 24 May 2013 08:44:31 +0000 http://systemsarchitect.net/?p=768#comment-128 microtime(true)?:)

Like

]]>
By: Lukasz Kujawa https://systemsarchitect.net/2013/05/23/3-simple-steps-to-boost-performance-of-a-php-web-application/comment-page-1/#comment-127 Fri, 24 May 2013 08:24:37 +0000 http://systemsarchitect.net/?p=768#comment-127 Hello Wojtek, thank you for your comment. Breaking routes is a good idea but for this particular application hard to do. We need routes from various modules to build links with the URL helper.

Could you please tell more about the issue with APC? 5ms is indeed very slow for pulling data form memory. Is it because of concurrency and locking or there are some other reasons?

Like

]]>
By: Wojtek https://systemsarchitect.net/2013/05/23/3-simple-steps-to-boost-performance-of-a-php-web-application/comment-page-1/#comment-126 Thu, 23 May 2013 15:43:05 +0000 http://systemsarchitect.net/?p=768#comment-126 A easy way to improve your Zend 1 Routing is to (if possible) split your app in main index.php and load different, module-specific Application class with different set of routes. It also means that adding new routes will not slow down other parts of your app!

APC is your friend – but be careful, and always benchmark your changes. Fetching objects from APC can take more then 5ms in some cases, it might be more then initialising PHP object with config array retrieved from APC.

Also, it’s good to make sure that there are no `require_once` in your code, there is a lot of it in Zend 1. Even with `apc.stat = 0` require once will hit disk and stat the file!

And finally, use XDebug regularly on your production environment!:)

Like

]]>