Drupal\Core\Theme\ComponentNegotiator::negotiate uses a lot of memory

Created on 13 December 2024, 3 months ago

Problem/Motivation

Drupal\Core\Theme\ComponentNegotiator::negotiate

Doing some profiling of Drupal CMS and I see a lot of memory usage from this method.

Seems to all be due to Drupal\Core\Extension\ExtensionList::getList which is called by Drupal\Core\Theme\ComponentNegotiator::maybeNegotiateByModule

I think the component negotiator probably needs its own cache so it doesn't need to load the full info for every module into memory on every request - but didn't read code yet.

This is also called by Drupal\Core\Extension\ThemeHandler::listInfo

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

single-directory components

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024