Hi,
I am working this app of mine and its going smoothly. Suddenly, today I notice its taking longer than usual to load. First it was around 1 second .. then it went up to 4 seconds. I was really confused, I even put the benchmarking code inside the Loader class and all but still couldn’t detect it. I commented out all the stuff in my controller and put in an
echo ' foo ';
. Still very slow. I tried searching the forum about this but couldn’t find anything.
Finally, I thought I would check the log and saw that I had to scroll a long way.I deleted the stuff in the log file and Voila!! things are back to normal!!. Then I searched this forum about logging and saw a post on it. I had put log threshold to 4 for some debugging stuff before. I didn’t know it would have such an impact.
Anyway, isn’t there any way this can be sped up a little? I saw that log.php only flocks the file and then writes to it. Is the overhead that much? And why does it get slower only as the file grows larger?
Thanks,
Thomas
