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

Lazy loading the controllers #2592

Open
mitelg opened this issue Sep 20, 2023 · 0 comments
Open

Lazy loading the controllers #2592

mitelg opened this issue Sep 20, 2023 · 0 comments

Comments

@mitelg
Copy link
Contributor

mitelg commented Sep 20, 2023

Currently, while starting Shopware, all Controllers are initialized, which is not necessary at all, and then cloned to reduce the shared state. shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php

We should exchange this with a service locator, which only initializes the controller needed.
Moreover, we should remove the clone and reduce the state in the controllers.

This should reduce the request time and memory since fewer services are created upfront.

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

No branches or pull requests

1 participant