getEntityPreprocessServices performs same logic for similar bundles/views modes

Created on 10 March 2022, about 3 years ago
Updated 7 March 2025, 29 days ago

Problem/Motivation

The logic inside the getEntityPreprocessServices method in the EntityPreprocessServiceManager is being done multiple times for the same entitytype/bundle/view mode combination.

On overview pages containing hundreds of nodes, this could have a (even though it is minor) performance impact.

I will provide a patch, which statically caches the services on the manager class.

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇪Belgium wtrv

Live updates comments and jobs are added and updated live.
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