I have a controller action which is taking 10 seconds to run. Most of the time is being spent in a view which is a large file.(more than 1500 lines). How shall I go about debugging the speed issue?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest to wrap some small pieces of your view into
benchmarkblocks and see in the log/development.log where are the slow parts.The best case will be that you find a few places where 90% time is spent. Then you can work on them to significantly improve the performance.