minor #20818 [Yaml] Small optimization of the parser (GuilhemN)
minor #20818 [Yaml] Small optimization of the parser (GuilhemN)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[Yaml] Small optimization of the parser

| Q             | A
| ------------- | ---
| Branch?       | "master"
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Very small optimization in the Yaml parser but as it is executed often, there are performance gains (I used [this benchmark](https://gist.github.com/GuilhemN/364c4ddcc8349eaa080054d5f8ef8685); you can see the [comparison master / this PR](https://blackfire.io/profiles/compare/0f4e5497-d410-4c76-83e9-d8fa8e46ce18/graph)).

Commits
-------

5fc8e86 [Yaml] Small optimization of the parser

mpdude/symfony,Taluu/symfony,vincentaubert/symfony,ajgarlag/symfony,sstok/symfony,MatTheCat/symfony,hhamon/symfony,OskarStark/symfony,mpdude/symfony,damienalexandre/symfony,ro0NL/symfony,Simperfit/symfony,josephdpurcell/symfony,nicolas-grekas/symfony,GuilhemN/symfony,shieldo/symfony,phramz/symfony,lyrixx/symfony,d-ph/symfony,mweimerskirch/symfony,yceruto/symfony,paradajozsef/symfony,pamil/symfony,frankdejonge/symfony,ro0NL/symfony,andreia/symfony,joelwurtz/symfony,pyrech/symfony,michaelperrin/symfony,iltar/symfony,ajgarlag/symfony,zcodes/symfony,Amo/symfony,arjenm/symfony,garak/symfony,yceruto/symfony,josephdpurcell/symfony,curry684/symfony,aeoris/symfony,MatTheCat/symfony,maidmaid/symfony,sroze/symfony,mpdude/symfony,gimler/symfony,Nyholm/symfony,alekitto/symfony,oleg-andreyev/symfony,neemzy/symfony,Deamon/symfony,ro0NL/symfony,jjanvier/symfony,romaricdrigon/symfony,jean-gui/symfony,MatTheCat/symfony,jjanvier/symfony,Koc/symfony,Pierstoval/symfony,zerkms/symfony,ajgarlag/symfony,lstrojny/symfony,csarrazi/symfony,sgehrig/symfony,jzawadzki/symfony,yceruto/symfony,Ener-Getick/symfony,e-moe/symfony,docteurklein/symfony,sgehrig/symfony,Nyholm/symfony,aeoris/symfony,Tobion/symfony,c960657/symfony,weaverryan/symfony,andrerom/symfony,jvasseur/symfony,pyrech/symfony,lstrojny/symfony,weaverryan/symfony,bendavies/symfony,Simperfit/symfony,localheinz/symfony,klandaika/symfony,Tobion/symfony,sgehrig/symfony,andreia/symfony,WhiteEagle88/symfony,voronkovich/symfony,d-ph/symfony,kbond/symfony,Einenlum/symfony,damienalexandre/symfony,backbone87/symfony,derrabus/symfony,xabbuh/symfony,hason/symfony,frankdejonge/symfony,jderusse/symfony,Nyholm/symfony,Engerim/symfony,Taluu/symfony,sstok/symfony,backbone87/symfony,DavidGarciaCat/symfony,deguif/symfony,Slamdunk/symfony,Strate/symfony,c960657/symfony,klandaika/symfony,1ed/symfony,zorn-v/symfony,Strate/symfony,docteurklein/symfony,romaricdrigon/symfony,fabpot/symfony,neemzy/symfony,paradajozsef/symfony,vincentaubert/symfony,zcodes/symfony,Amo/symfony,ragboyjr/symfony,nicolas-grekas/symfony,curry684/symfony,mnapoli/symfony,jean-gui/symfony,dmaicher/symfony,bendavies/symfony,phramz/symfony,HeahDude/symfony,Deamon/symfony,Triiistan/symfony,gonzalovilaseca/symfony,pierredup/symfony,Taluu/symfony,docteurklein/symfony,arjenm/symfony,mweimerskirch/symfony,docteurklein/symfony,smatyas/symfony,ogizanagi/symfony,fabpot/symfony,dzuelke/symfony,smatyas/symfony,Einenlum/symfony,dmaicher/symfony,joelwurtz/symfony,jvasseur/symfony,voronkovich/symfony,1ed/symfony,stof/symfony,dunglas/symfony,nasimnabavi/symfony,symfony/symfony,nasimnabavi/symfony,OskarStark/symfony,e-moe/symfony,phramz/symfony,lyrixx/symfony,jakzal/symfony,stof/symfony,chrisguitarguy/symfony,nasimnabavi/symfony,apetitpa/symfony,apetitpa/symfony,apetitpa/symfony,mpdude/symfony,klandaika/symfony,e-moe/symfony,garak/symfony,sstok/symfony,jjanvier/symfony,mweimerskirch/symfony,gencer/symfony,sroze/symfony,frankdejonge/symfony,Tobion/symfony,smatyas/symfony,dzuelke/symfony,jderusse/symfony,okdana/symfony,dzuelke/symfony,hason/symfony,zerkms/symfony,deguif/symfony,ragboyjr/symfony,lyrixx/symfony,romaricdrigon/symfony,ro0NL/symfony,lstrojny/symfony,alekitto/symfony,michaelperrin/symfony,stof/symfony,WhiteEagle88/symfony,localheinz/symfony,codeclimate-testing/symfony,kbond/symfony,curry684/symfony,lyrixx/symfony,jzawadzki/symfony,zcodes/symfony,codeclimate-testing/symfony,maidmaid/symfony,chalasr/symfony,GuilhemN/symfony,e-moe/symfony,apetitpa/symfony,lepiaf/symfony,jderusse/symfony,MatTheCat/symfony,apfelbox/symfony,Tobion/symfony,nasimnabavi/symfony,vincentaubert/symfony,lepiaf/symfony,klandaika/symfony,aeoris/symfony,weaverryan/symfony,1ed/symfony,romainneutron/symfony,derrabus/symfony,jderusse/symfony,Ener-Getick/symfony,gimler/symfony,Amo/symfony,iltar/symfony,Amo/symfony,tgalopin/symfony,csarrazi/symfony,weaverryan/symfony,gnat42/symfony,chalasr/symfony,maidmaid/symfony,kbond/symfony,GuilhemN/symfony,Ener-Getick/symfony,zorn-v/symfony,Pierstoval/symfony,romainneutron/symfony,michaelperrin/symfony,phramz/symfony,gimler/symfony,jjanvier/symfony,xabbuh/symfony,Koc/symfony,Engerim/symfony,Ener-Getick/symfony,tgalopin/symfony,dunglas/symfony,yceruto/symfony,garak/symfony,pierredup/symfony,csarrazi/symfony,dbu/symfony,Ener-Getick/symfony,hacfi/symfony,Simperfit/symfony,dbu/symfony,apfelbox/symfony,voronkovich/symfony,jean-gui/symfony,DavidGarciaCat/symfony,Slamdunk/symfony,dbu/symfony,gnat42/symfony,vincentaubert/symfony,pyrech/symfony,Pierstoval/symfony,HeahDude/symfony,tucksaun/symfony,neemzy/symfony,zorn-v/symfony,codeclimate-testing/symfony,alekitto/symfony,nicolas-grekas/symfony,gencer/symfony,klandaika/symfony,voronkovich/symfony,bendavies/symfony,zcodes/symfony,symfony/symfony,c960657/symfony,chalasr/symfony,chrisguitarguy/symfony,derrabus/symfony,pamil/symfony,codeclimate-testing/symfony,apfelbox/symfony,Ener-Getick/symfony,DavidGarciaCat/symfony,iltar/symfony,teohhanhui/symfony,chrisguitarguy/symfony,josephdpurcell/symfony,Triiistan/symfony,deguif/symfony,dmaicher/symfony,arjenm/symfony,damienalexandre/symfony,Slamdunk/symfony,tucksaun/symfony,pamil/symfony,Koc/symfony,fabpot/symfony,andreia/symfony,dzuelke/symfony,jakzal/symfony,zerkms/symfony,mweimerskirch/symfony,romainneutron/symfony,HeahDude/symfony,jjanvier/symfony,ajgarlag/symfony,mnapoli/symfony,tucksaun/symfony,teohhanhui/symfony,Deamon/symfony,curry684/symfony,nicolas-grekas/symfony,oleg-andreyev/symfony,romainneutron/symfony,Pierstoval/symfony,hacfi/symfony,jakzal/symfony,gnat42/symfony,bendavies/symfony,shieldo/symfony,jakzal/symfony,Engerim/symfony,hhamon/symfony,gonzalovilaseca/symfony,garak/symfony,hhamon/symfony,apfelbox/symfony,hacfi/symfony,shieldo/symfony,okdana/symfony,tgalopin/symfony,chrisguitarguy/symfony,Einenlum/symfony,pyrech/symfony,oleg-andreyev/symfony,tucksaun/symfony,ragboyjr/symfony,joelwurtz/symfony,sroze/symfony,gonzalovilaseca/symfony,ogizanagi/symfony,Slamdunk/symfony,gonzalovilaseca/symfony,mnapoli/symfony,Triiistan/symfony,kbond/symfony,Simperfit/symfony,d-ph/symfony,chalasr/symfony,WhiteEagle88/symfony,Taluu/symfony,andrerom/symfony,docteurklein/symfony,Amo/symfony,mnapoli/symfony,mnapoli/symfony,Einenlum/symfony,smatyas/symfony,hason/symfony,maidmaid/symfony,ogizanagi/symfony,1ed/symfony,Deamon/symfony,ogizanagi/symfony,romaricdrigon/symfony,Aliance/symfony,gimler/symfony,xabbuh/symfony,GuilhemN/symfony,dunglas/symfony,stof/symfony,Aliance/symfony,hhamon/symfony,OskarStark/symfony,gencer/symfony,HeahDude/symfony,c960657/symfony,jean-gui/symfony,symfony/symfony,sroze/symfony,zerkms/symfony,jzawadzki/symfony,Triiistan/symfony,ragboyjr/symfony,sgehrig/symfony,dmaicher/symfony,paradajozsef/symfony,dbu/symfony,shieldo/symfony,okdana/symfony,pamil/symfony,Triiistan/symfony,Aliance/symfony,apfelbox/symfony,localheinz/symfony,derrabus/symfony,teohhanhui/symfony,paradajozsef/symfony,zorn-v/symfony,dzuelke/symfony,romainneutron/symfony,oleg-andreyev/symfony,andrerom/symfony,Koc/symfony,sstok/symfony,Strate/symfony,backbone87/symfony,xabbuh/symfony,symfony/symfony,deguif/symfony,jvasseur/symfony,fabpot/symfony,alekitto/symfony,GuilhemN/symfony,pierredup/symfony,chrisguitarguy/symfony,andrerom/symfony,d-ph/symfony,joelwurtz/symfony,teohhanhui/symfony,andreia/symfony,frankdejonge/symfony,damienalexandre/symfony,dbu/symfony,arjenm/symfony,mweimerskirch/symfony,iltar/symfony,gnat42/symfony,smatyas/symfony,OskarStark/symfony,sstok/symfony,jvasseur/symfony,pierredup/symfony,michaelperrin/symfony,lepiaf/symfony,Nyholm/symfony,localheinz/symfony,tgalopin/symfony,Deamon/symfony,Simperfit/symfony