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

performance issue on loading due to large # of php files loaded #676

Open
donbowman opened this issue Aug 31, 2023 · 0 comments
Open

performance issue on loading due to large # of php files loaded #676

donbowman opened this issue Aug 31, 2023 · 0 comments

Comments

@donbowman
Copy link
Contributor

donbowman commented Aug 31, 2023

as a 'trivial benchmark i am using time wp site (loads wordpress and exits).

This does not use any media obviously.
with the wp-stateless plugin installed, this takes 1.1s. With the plugin removed, it takes 500ms.

This plugin loads a large number of files (494) due to its autoloads.
this includes all the compat classes (60), vendor (365)

is there a way to alter the autoload strategy to delay the loading later until needed, rathere than on init?

this in turn is causing significant latency on my site.

note: i was able to improve by running composer dump-autoload -o --apcu

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