Needs work
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2025 at 08:57 UTC
Updated:
1 May 2026 at 20:17 UTC
Jump to comment: Most recent
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.
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
Comment #2
catchComment #4
berdirI 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.
Comment #7
sivaji_ganesh_jojodae commentedComment #8
catchI think I have another issue open that is potentially looking at deprecating the field map. Will try to find..
Comment #9
smustgrave commented@catch able to find that issue?
Comment #10
dcam commentedThis 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.
Comment #11
catchFound the issue.