fixes performance regression
fixes performance regression

The regression was introduced by 1e09c7b660856b8178c1.

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