Performance optimization: dynamic event subscription

Issue information

From user: mxh

Related to !387 (merged)

Contribution record

Fork management

Problem/Motivation

Since ECA configurations do know which events they react upon, it might make sense to consider whether we should dynamically add event triggering and hook implementations only for the places where ECA configurations would actually react upon.

This may reduce some runtime overhead as only events and hooks are being invoked when there is actually something available for them.

This is not a 1.0 blocker, could be addressed for 1.1.

This issue is blocked by #3277465: Mark ECA events as internal

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information