Skip to content

Why does Magento’s bootstrap feel slow? #40174

@MagePsycho

Description

@MagePsycho

⚙️⏱️ Why does Magento’s bootstrap feel slow? 🤔
Is it autoloading?
On every request, PHP resolves hundreds or thousands of classes across many modules—that’s a lot of filesystem I/O and autoloader lookups.

How to speed it up ⚡️
Composer/autoload: composer install --no-dev --optimize-autoloader or composer dump-autoload -o or via some other mechanism?

Let’s discuss.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: ready for confirmationReported on 2.4.xIndicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Ready for Confirmation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions