minor #26423 [DomCrawler] minor performance improvement (dunglas)
minor #26423 [DomCrawler] minor performance improvement (dunglas)

This PR was squashed before being merged into the 4.1-dev branch (closes #26423).

Discussion
----------

[DomCrawler] minor performance improvement

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? |no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | n/a

Commits
-------

eead301 [DomCrawler] minor performance improvement

andrerom/symfony,voronkovich/symfony,michaelperrin/symfony,bendavies/symfony,MatTheCat/symfony,localheinz/symfony,kbond/symfony,symfony/symfony,hacfi/symfony,gonzalovilaseca/symfony,Einenlum/symfony,pierredup/symfony,ro0NL/symfony,tgalopin/symfony,mweimerskirch/symfony,ro0NL/symfony,teohhanhui/symfony,gnat42/symfony,lyrixx/symfony,pyrech/symfony,joelwurtz/symfony,andreia/symfony,jvasseur/symfony,xabbuh/symfony,bendavies/symfony,derrabus/symfony,yceruto/symfony,garak/symfony,fabpot/symfony,romaricdrigon/symfony,jakzal/symfony,e-moe/symfony,gimler/symfony,michaelperrin/symfony,andreia/symfony,jderusse/symfony,e-moe/symfony,iltar/symfony,oleg-andreyev/symfony,jderusse/symfony,d-ph/symfony,HeahDude/symfony,garak/symfony,ajgarlag/symfony,Slamdunk/symfony,Koc/symfony,stof/symfony,HeahDude/symfony,Simperfit/symfony,zerkms/symfony,ro0NL/symfony,dmaicher/symfony,gimler/symfony,shieldo/symfony,tucksaun/symfony,ajgarlag/symfony,bendavies/symfony,docteurklein/symfony,garak/symfony,ajgarlag/symfony,andrerom/symfony,paradajozsef/symfony,pierredup/symfony,yceruto/symfony,MatTheCat/symfony,HeahDude/symfony,andrerom/symfony,fabpot/symfony,weaverryan/symfony,nasimnabavi/symfony,Pierstoval/symfony,paradajozsef/symfony,michaelperrin/symfony,tgalopin/symfony,jvasseur/symfony,ogizanagi/symfony,jean-gui/symfony,1ed/symfony,nicolas-grekas/symfony,pamil/symfony,iltar/symfony,deguif/symfony,Pierstoval/symfony,jvasseur/symfony,nasimnabavi/symfony,mpdude/symfony,andreia/symfony,teohhanhui/symfony,weaverryan/symfony,Pierstoval/symfony,apetitpa/symfony,d-ph/symfony,sgehrig/symfony,MatTheCat/symfony,pamil/symfony,gonzalovilaseca/symfony,OskarStark/symfony,arjenm/symfony,Nyholm/symfony,xabbuh/symfony,alekitto/symfony,frankdejonge/symfony,jakzal/symfony,sgehrig/symfony,dmaicher/symfony,pierredup/symfony,phramz/symfony,jderusse/symfony,jakzal/symfony,tucksaun/symfony,Nyholm/symfony,lstrojny/symfony,zcodes/symfony,curry684/symfony,lyrixx/symfony,derrabus/symfony,chalasr/symfony,xabbuh/symfony,maidmaid/symfony,stof/symfony,mpdude/symfony,xabbuh/symfony,phramz/symfony,kbond/symfony,arjenm/symfony,pamil/symfony,hhamon/symfony,Tobion/symfony,deguif/symfony,e-moe/symfony,ragboyjr/symfony,iltar/symfony,voronkovich/symfony,mnapoli/symfony,nicolas-grekas/symfony,shieldo/symfony,zorn-v/symfony,Deamon/symfony,mweimerskirch/symfony,lstrojny/symfony,lyrixx/symfony,Simperfit/symfony,fabpot/symfony,Taluu/symfony,shieldo/symfony,hhamon/symfony,ogizanagi/symfony,jean-gui/symfony,symfony/symfony,zerkms/symfony,zerkms/symfony,gnat42/symfony,frankdejonge/symfony,vincentaubert/symfony,joelwurtz/symfony,zcodes/symfony,Nyholm/symfony,vincentaubert/symfony,voronkovich/symfony,Slamdunk/symfony,bendavies/symfony,stof/symfony,mweimerskirch/symfony,Taluu/symfony,e-moe/symfony,sgehrig/symfony,romaricdrigon/symfony,dmaicher/symfony,shieldo/symfony,mweimerskirch/symfony,chalasr/symfony,1ed/symfony,chalasr/symfony,docteurklein/symfony,OskarStark/symfony,gimler/symfony,hacfi/symfony,chalasr/symfony,smatyas/symfony,pierredup/symfony,tucksaun/symfony,michaelperrin/symfony,apetitpa/symfony,joelwurtz/symfony,zorn-v/symfony,frankdejonge/symfony,Taluu/symfony,curry684/symfony,phramz/symfony,romaricdrigon/symfony,jean-gui/symfony,tucksaun/symfony,alekitto/symfony,Tobion/symfony,stof/symfony,nicolas-grekas/symfony,Deamon/symfony,ragboyjr/symfony,mnapoli/symfony,fabpot/symfony,1ed/symfony,zcodes/symfony,localheinz/symfony,kbond/symfony,Koc/symfony,paradajozsef/symfony,Pierstoval/symfony,weaverryan/symfony,Koc/symfony,phramz/symfony,nasimnabavi/symfony,localheinz/symfony,pyrech/symfony,smatyas/symfony,gonzalovilaseca/symfony,Nyholm/symfony,d-ph/symfony,ro0NL/symfony,Einenlum/symfony,oleg-andreyev/symfony,ajgarlag/symfony,Tobion/symfony,hhamon/symfony,deguif/symfony,Slamdunk/symfony,joelwurtz/symfony,derrabus/symfony,Einenlum/symfony,maidmaid/symfony,zorn-v/symfony,curry684/symfony,Koc/symfony,andreia/symfony,damienalexandre/symfony,dmaicher/symfony,deguif/symfony,frankdejonge/symfony,HeahDude/symfony,Slamdunk/symfony,gnat42/symfony,docteurklein/symfony,c960657/symfony,damienalexandre/symfony,arjenm/symfony,jean-gui/symfony,zorn-v/symfony,gnat42/symfony,curry684/symfony,hacfi/symfony,smatyas/symfony,c960657/symfony,OskarStark/symfony,mnapoli/symfony,localheinz/symfony,maidmaid/symfony,ragboyjr/symfony,romaricdrigon/symfony,ogizanagi/symfony,mnapoli/symfony,Simperfit/symfony,teohhanhui/symfony,Deamon/symfony,docteurklein/symfony,jvasseur/symfony,alekitto/symfony,yceruto/symfony,maidmaid/symfony,damienalexandre/symfony,mweimerskirch/symfony,pyrech/symfony,smatyas/symfony,zcodes/symfony,gimler/symfony,c960657/symfony,symfony/symfony,sroze/symfony,MatTheCat/symfony,iltar/symfony,teohhanhui/symfony,oleg-andreyev/symfony,sroze/symfony,ragboyjr/symfony,jakzal/symfony,vincentaubert/symfony,alekitto/symfony,pamil/symfony,kbond/symfony,Simperfit/symfony,mpdude/symfony,nasimnabavi/symfony,vincentaubert/symfony,voronkovich/symfony,pyrech/symfony,mpdude/symfony,apetitpa/symfony,docteurklein/symfony,c960657/symfony,tgalopin/symfony,derrabus/symfony,weaverryan/symfony,Deamon/symfony,tgalopin/symfony,garak/symfony,OskarStark/symfony,mnapoli/symfony,hhamon/symfony,sroze/symfony,Tobion/symfony,ogizanagi/symfony,jderusse/symfony,Deamon/symfony,paradajozsef/symfony,d-ph/symfony,sgehrig/symfony,symfony/symfony,nicolas-grekas/symfony,zerkms/symfony,lyrixx/symfony,Simperfit/symfony,sroze/symfony,smatyas/symfony,damienalexandre/symfony,Taluu/symfony,oleg-andreyev/symfony,gonzalovilaseca/symfony,arjenm/symfony,Einenlum/symfony,lstrojny/symfony,andrerom/symfony,1ed/symfony,yceruto/symfony,apetitpa/symfony