Improve performance of /xb/api/v0/config/component

Created on 19 June 2025, 5 days ago

Overview

With a cold cache xb/api/v0/config/component takes upwards of 5 seconds to load on my local environment

Profiling it with SPX I see 11.48 Million ‼️ function calls with a wall time of 8.77s

Proposed resolution

Improve the performance of this endpoint as the XB UI doesn't work until it has been loaded - we block loading the component and page data forms until it has finished.

Looks like some things we could optimise are in the shape matcher - \Drupal\experience_builder\ShapeMatcher\FieldForComponentSuggester::suggest in particular as the entry point

- Drupal\Core\Entity\TypedDat…tyDataDefinition::getBundles - 137k calls from \Drupal\experience_builder\ShapeMatcher\JsonSchemaFieldInstanceMatcher::findFieldInstanceFormatMatches

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Shape matching

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

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