[eluser]dyron[/eluser]
Hi,
now I'm develop for a while with CI. Nice Framework, but still some places for improvements.
After I work on a handball website, my system ran low and my browser crashed. Looking at the task manager shows me a storage allocation of 900MB! for firefox and 300MB! for apache. This isn't normal.
For debugging I created a helper which contains:
Code:
function debug()
{
echo "<pre>\n";
var_dump(func_get_args());
echo "</pre>\n";
die();
}
I used this for displaying $this. This was a experience.
Firebug notifies that this HTTP request causes 200MB traffic before arriving the PHP maximum_execution_time of 30 secs.
Most of the "$this" content was absolutely redundant, e.g. more than 50 CI_Config references.
Does anybody know, how I kept $this thin and clean?
I think it's a problem with
Code:
$CI =& get_instance();
in functions or
Code:
$this->CI =& get_instance();
in classes.
I use PHP 5, however I read & is deprecated. Should I use
Code:
$CI = get_instance();
instead?
My CI version is 1.5.4.
Anybody noticed such characteristics?
Regards dy