merged branch Brouznouf/patch-1 (PR #425)
merged branch Brouznouf/patch-1 (PR #425)

Commits
-------

4dc490f Removing array_shift for optimisation.

Discussion
----------

Removing array_shift for optimisation.

For example we check if a template and use exception to redirect to a default template

Before : We checked ~1000 times => 100sec due to array_shift
After  : ~1sec

peterkokot/Twig,sstok/Twig,jamessingizi/Twig,moltin/Twig,framewr/Twig,derickr/Twig,apishka/templater,apishka/templater,gencer/Twig,andrerom/Twig,huang53798584/Twig,nicolas-grekas/Twig,andrerom/Twig,znerol/Twig,znerol/Twig,moufmouf/Twig,iKwinto/Twig,iKwinto/Twig,Tobion/Twig,craue/Twig,derickr/Twig,hhamon/Twig,nicolas-grekas/Twig,fsw/Twig,hhamon/Twig,nicolas-grekas/Twig,phansys/Twig,derickr/Twig,moltin/Twig,Rvanlaak/Twig,maartendekeizer/Twig,hason/Twig,jamessingizi/Twig,jamessingizi/Twig,moufmouf/Twig,nicolas-grekas/Twig,hason/Twig,peterkokot/Twig,iKwinto/Twig,twigphp/Twig,loi-chuanoi/Twig,markstory/Twig,craue/Twig,moufmouf/Twig,fsw/Twig,twigphp/Twig,bocharsky-bw/Twig,nicolas-grekas/Twig,maartendekeizer/Twig,dkarvounaris/Twig,phansys/Twig,bocharsky-bw/Twig,gamernetwork/Twig,framewr/Twig,hhamon/Twig,moltin/Twig,Tobion/Twig,sstok/Twig,fsw/Twig,dkarvounaris/Twig,gamernetwork/Twig,hason/Twig,Rvanlaak/Twig,markstory/Twig,twigphp/Twig,huang53798584/Twig,gamernetwork/Twig,bocharsky-bw/Twig,robregonm/Twig,Rvanlaak/Twig,robregonm/Twig,framewr/Twig,Tobion/Twig,robregonm/Twig,znerol/Twig,huang53798584/Twig,gencer/Twig,dkarvounaris/Twig