Board Thread:Support Requests - Getting Technical/@comment-3225604-20150614103358/@comment-5590118-20150706075816

Catinthedark wrote: It's ok. In fact, I just looked at Joey's code, specifically the loop in which your errant replace statement is located. Looks like that string would get too big to transcribe. I initially thought it was just a line in the log... but it's whole log! :O

I wonder tho about performance issues with replace on that size, and with the concat too. Just doesn't give me the warm fuzzies. One of the edits was ~7Kb. Not massive, but hardly trivial.

Have you noticed if it crashes when there's been a lot of activity? If so, or if you aren't sure, you could you try reducing the write intervals say every 10 mins or even 10, instead of 30... to get the size of that string down. Are you absolutely sure it does not first break the page down into lines and then iterates over them?

Doing that would be much more efficient than a single operation on an entire page.

Edit: It does indeed break the page up into individual lines meaning that the size of the page isn't the problem. The problem lies within an incorrect regular expression.