nextcloud / nextcloud/server

Make individual app boot methods more lazy

Open
#44,951 0 comments 3 reactions 1 assignee View on GitHub

@juliusknorr is already working on this.

Since May 14, 2024.

1. to develop enhancement feature: apps management performance 🚀 technical debt
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

While looking at some flamegraphs I noticed that we still have plenty of apps that have logic in the boot method that could be done far more lazy. Those would trigger larger chunks of dependency injection pulling in class instances that might not be needed (yet). While some dependencies might still be pulled in later there is definitiely potential for saving some load in the app boot process.

While every change itself might be rather small, this could add up in total to become a nice improvement.

A few examples that could be beneficial to move:

xdebug _ocs_v2_php_apps_notifications_api_v2_notifications 1713767602 182289 xt gz

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.