toby1978
(Tobias Florian Marx)
January 20, 2014, 2:53pm
1
I have evaluated YiiFramework using a testdrive demo project.
I installed the yii-user-management module and noticed peformance of the user module index page takes 3-4 seconds to load.
I analyzed the code and noticed, it is not the code of the module, it is the Yii internals.
even the many calls of "dirname" took over 1 second.
Why is this and is there any plans to improve this in yii 2.0 ?
I started modifying the Yii framework code - but this is a bit tedious.
Thanks!
Tobias
Please be more specific.
It’s more than just tedious. It’s highly disregarded.
konapaz
(Konapaz)
January 20, 2014, 3:22pm
3
Hi
dirname is php function so the problem is with php and your server
could you give us more details about that ?
toby1978
(Tobias Florian Marx)
January 20, 2014, 4:10pm
5
-> an empty testdrive / hello world project following the yii tutorial
-> I added the yii-user-management module
I can fork it and committ back to the yii core. Why disregarded? Someone has to do this job sooner or later…even if there is no way around dirname, it should only be called a single time for a page request.
toby1978
(Tobias Florian Marx)
January 20, 2014, 4:12pm
6
It is the latest Xampp on Windows 64 bit (2 completely different machines, reproducable)
konapaz
(Konapaz)
January 20, 2014, 4:18pm
7
Run a simple PHP script using dirname function (without Yii framework)
What is the result ?
toby1978
(Tobias Florian Marx)
January 22, 2014, 10:48am
8
A single call of dirname is relatively fast of course…
However I do not know how reliable Xdebug output is.
Could somebody else post a Xdebug output for a "complex" Yiipage? Preferably xampp and win64
uEhlO4a
(Y Korotia)
January 25, 2014, 12:52am
9
disable profiler, PHP is writing Mbs of garbage, that’s the reason
even 1k of dirname cannot degrade performance enough