New plugin system causes significant slowdowns
|Reported by:||ewinslow||Owned by:||brettp|
In my rudimentary tests, I found that plugin loading time is where the bulk of Elgg startup time occurs. When plugins are loaded they do a lot of parsing, self-validation, loading manifests, etc. There's no reason to do this over and over on every page load, since the results are the same regardless of viewtype, logged in user, etc.
On my localhost, elgg_get_plugins('active') was taking ~3.25 seconds of total execution time without caching (haven't figured out exactly why it was taking so long in the first place). With caching it was only eating up around ~200ms of total execution time.
Change History (14)
comment:1 Changed 2 years ago by brettp
- Difficulty set to moderate
- Milestone changed from Needs Review to Elgg 1.8
- Owner set to brettp
- Priority changed from normal to high
- Severity changed from minor to major
comment:8 Changed 2 years ago by brettp
- Summary changed from Use elgg's filepath cache to store results of elgg_get_plugins to New plugin system causes significant slowdowns