English 中文(简体)
如何更快地提供国名
原标题:How to make Symfony faster

My symfony projects work veeery slow, between 4 and 8 seconds per page (I m working in dev environment). I ve tried to use PHP APC (with it, it works slower), I ve tried to optimize my code, I`ve tried to explore standard symfony library, etc. But nothig helped me.

P.S.,我有良好的硬件,即“我确信问题在其中是 t的”。

最佳回答

在您的运用中找到你的瓶颈。

很可能,这只是一个ony语问题,但你已经做些什么,或者你这样做了。

Install XDebug, profile your application, then analyze the results to figure out what is taking all the relative time to compute. You will probably see something taking like 98% of the relative time, and it will probably be something obscure like a timeout request etc.

问题回答

利用宣传员寻找瓶颈。 我们无法确定你申请中哪一部分进展缓慢。

在你找到缓慢的地方之前,你将不得不通过在关键执行点抽出时间,将时间推到法典中来管理某些基准。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签