[meta-6] Reduce cold cache memory requirements

Created on 26 May 2015, over 10 years ago
Updated 14 February 2024, over 1 year ago

Problem/Motivation

Opening this as a child of #2493035: Discover any memory limit issues we have β†’ .

When submitting the modules page (no xdebug or xhprof), I see 70M of memory usage. We've just set core's minimum memory limit to 64M after lots of discussion (See #2289201-66: [Meta] Make drupal install and run within reasonable php memory limits so we can reset the memory requirements to lower levels β†’ , so opening this as a critical bug.

Proposed resolution

The immediate worst offender I found was field_help(). This takes 800ms wall time on my machine, and 8mb of memory.

In ModuleListForm::buildRow() we check if the module has a hook_help() for the main help path - by executing hook_help() with that path. For field_help() this means listing every field type, widget and formatter - just to render a link. Needs an issue - we can probably move the actual listing to a dedicated route then link to it?

Other bad offenders:

views_theme() - loads lots of plugins. Not a new problem particularly - theme registry rebuilds have always been bad, but grrr. Worth an issue in case we can come up with something.

fileld_system_info_alter() 3.8M - should already have an issue.
filter_system_info_alter() 3M - should already have an issue.

Remaining tasks

Get the child issues RTBC and committed, then check the memory usage again.

User interface changes

Not here.

API changes

Not here.

πŸ“Œ Task
Status

Closed: outdated

Version

9.5

Component
BaseΒ  β†’

Last updated about 1 month ago

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024