Improve performance of facets breadcrumb

Created on 29 October 2024, about 2 months ago

Problem/Motivation

Most facets don't have the breadcrumb plugin enabled, but "::isRenderedInCurrentRequest" is called first. This is quite expensive (on sites with layout builder enabled even more, see \Drupal\search_api\Plugin\search_api\display\ViewsBlock::isRenderedInCurrentRequest)

Its faster to lookup the config first, and call ::isRenderedInCurrentRequest afterwards.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany webflo

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024