Nette 2.1.2 – page is rendered too long
- radas
- Member | 224
If I have enabled Debugger on localhost, the page is rendered too long (cca 30 seconds). I compared files generated in temp/cache directory with this files from Nette 2.1.1 and all files are the same. If I have disabled Debugger in bootstrap.php, the page is rendered immediately.
- radas
- Member | 224
This is my current setting:
nette:
container:
debugger: TRUE
debugger:
email: ...
strictMode: TRUE
bar:
- Nette\DI\Diagnostics\ContainerPanel
The page is rendered too log again.
I commented this line
$configurator->enableDebugger(...);
in bootstrap.php. Page is rendered fast, but Nette Debuger bar is not shown.
- David Grudl
- Nette Core | 8218
The only relevat differences between 2.1.1 and 2.1.2 are https://github.com/…6706f7551b3e and https://github.com/…194cd2b7309a. Can you check what slows rendering down?
- radas
- Member | 224
Problem is in method Strings::fixEncoding().
My PHP version is 5.3.22. When I replaced file Nette\Utils\Strings.php with same from Nette 2.1.1, everything is OK and page is rendered fast.
- David Grudl
- Nette Core | 8218
I measured the performance before that commit and didn't notice any slowdown. Are you using Windows or Linux?
- David Grudl
- Nette Core | 8218
Mohl bys prosím vyzkoušet, jak to funguje v PHP 5.4? Klidně s verzí 5.4.0.
- radas
- Member | 224
Ok, but it still takes a long time. I think the problem is in the condition …&& strcasecmp($encoding, ‘UTF-8’) because it's still used branch “else”.
Isn't “…&& strcasecmp($encoding, ‘UTF-8’) === 0” the right way?
Last edited by radas (2014-03-21 08:03)
- David Grudl
- Nette Core | 8218
Yes, there should be ||
instead of &&
.
Refixed: https://github.com/…c3b9da764208