Thanks for the reply.
Yes i know that the memory limit is higher on PHP, but you know, i was wondering if 7 MB is a high value for Yii.
I know that i am working on a 32 bit system on windows, and when i will migrate to linux the memory usage will drop with at least 1 mb (you know,linux/optimized host/64 bit S.O).
Now, going back to my app memory usage, the page that does this, has a CGrid View and instantiates several models, basically it just does a listing of the database records (10 rows if you’re interested)
But it loads and checks a lot of stuff before reaching the controller(about 10 additional components are loaded, including cache and database rbac + theme support).
The default Yii implementation shows:
Execution Time: 0.069 sec | Memory Usage: 2.71 mb
So i am wondering, why is there so much difference? could be the fact that i am using AR intensively ?
I don’t believe i coded so badly so that the memory usage is my bad, i believe this is because the components, but i cannot drop neither of them.
Maybe you, or anyone that sees this thread can post the output of:
Execution Time: <?php echo round(CLogger::getExecutionTime(),3);?> sec
Memory Usage: <?php echo round(CLogger::getMemoryUsage()/1048576,2);?> mb
And explain a bit which components are loaded, would be very helpful, not only for me .