[eluser]vlad_ci[/eluser]
Hi,
while debugging my incomplete app,
I am noticing a constant slow down, when using log_message.
At first I thought that the new code I added caused the visible
slow down
(this is just my dev machine running PHP52.apache.postgres and
my Music player :- )
A soon as I disable logging, pages show up much faster.
I reviewed a couple of postings here, but still did not see
something that I could do -- without modifying internals of code
igniter.
I have seen somewhere a hack to a config.php to allow
to show a particular type of messages (instead of 4 and everything
below it) ... but cannot find it anymore, that would probably help
but not much.
So why is this thing so slow?
appending to a file of 50 lines per request cannot be that slow,
locking the file... I doubt (it is a local file system).
Does CI do 'lock file,seek,write' or someething like that for every single time I invoke the log_message?
So there may be a different way to pass messages to the log so
it goes faster? May be there something like 'flush log' that
could put at the destructor of the Controller class, so that writting
locking/writting would happen only once per request?
thank you