Optimize debugging performance

Created on 2 December 2022, over 1 year ago
Updated 12 June 2024, 16 days ago

Problem/Motivation

When either ECA debugging or webprofiler is enabled, we can run into timeouts or at least long page requests because of the build process of token information in \Drupal\eca\ConfigurableLoggerChannel::getTokenInfo

Proposed resolution

This is a method that's being called recursively for every single token on the token stack, for each logger call by ECA on a single page request. That happens a lot!!! And if the token list is long or tokens are complex (like e.g. forms), then collecting that information is a comprehensive task.

At the same time, the result of that process is the same most of the time. We should consider ways to optimize this by only re-collecting information if an object has changed - if we ever get a chance to recognize changes.

πŸ“Œ Task
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

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.69.0 2024