Problem/Motivation

Spin-off from #3537863: Optimize field module's hook_entity_bundle_info() implementation.

Note: the changes appear to make performance tests worse. Also because in e.g. building views data we try to check the field label for every field including base fields (which are on all bundles), it's not a performance improvement. It might be a performance improvement if ::getFieldLabels() called on a single field for one request.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3538300

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

catch created an issue. See original summary.

catch’s picture

Status: Active » Needs work

berdir’s picture

I forgot that the field map is a mix of on-the-file-build and stored data for bundles, so that's why this is more expensive, we actually end up building more entity types than when not using this.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

sivaji_ganesh_jojodae made their first commit to this issue’s fork.

sivaji_ganesh_jojodae’s picture

Status: Needs work » Needs review
catch’s picture

I think I have another issue open that is potentially looking at deprecating the field map. Will try to find..

smustgrave’s picture

@catch able to find that issue?

dcam’s picture

Status: Needs review » Needs work

This was set to Needs Work back in July. There's no obvious reason why it should be in the Needs Review status now just because it was rebased. I'm restoring the Needs Work status.

catch’s picture