fabpot/Twig — pull request #841 by dlsniper (2012-09-18 19:38:50+00:00)
Title: [WIP] Improvements for the Exceptions and loader speeds

This is something started from #822 .

I've first added a way to skip the most of the exception handling which that alone reduces the amount of time spent on the benchmark in that ticket by half.

Next step was to actually implement the ```hasSource()``` method for the interface/loaders. I've only used it in the ```ChainLoader``` as it was a good example for usage but if this will be approved I'll finish the other implementations as well.

Currently the problem is that by using the ```hasSource()``` method we'll not log the exceptions as before.

What do you think it's the next step for doing this the right way?