symphonycms/debugdevkit — pull request #39 by nitriques (2014-05-07 14:43:55+00:00)
Title: Performance improvement on tabs replacement

It processes the regex line by line instead of for the hole output, which drastically reduce the memory consumption.

I had a page with an 8000 line xml that refuses to render under 30 seconds. With this fix, it now renders properly in 7 secs.

Using `strstr` in a while loop is evil too. Using `strpos` is way better (as stated in the php docs).