Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PHP generator to prevent processing of all available site #4145

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

sfroemkenjw
Copy link
Collaborator

What this pr does

Use PHP generator with yield to process just the available sites needed

How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

@sfroemkenjw
Copy link
Collaborator Author

Wohouuuu. 316ms to render the index queue module. Happy review ;-)

@cricog
Copy link

cricog commented Sep 13, 2024

Hi! Do you plan to backport this correction on the 12 branch ?

@sfroemkenjw
Copy link
Collaborator Author

Hi @cricog,

@dkd-kaehm already asked me to provide a patch for TYPO3 12. Maybe I will find time this week.

Have a good start into this week

Stefan

@sfroemkenjw
Copy link
Collaborator Author

Hi @cricog I have added a patch for TYPO3 12.4:
#4154
Tests green. Yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants