Improve backend API when lots of components

Created on 26 March 2025, about 1 month ago

Overview

Backend API become slow, when lots of components.
When testing the default xb-page from xb-demo(around 80 components), we can see that the backend takes more than 3s to return an answer when just loading the page. (Not sure also why a POST request is sent at that time from a fresh page load)
POST request on /xb/api/layout/xb_page/1

By profiling the POST request to backend API call with PHP SPX provided by ddev or docker4drupal.
The same POST request takes now 9s in total because of the overhead of the profilling.

We see 32.57 Millions functions calls...

Zoom on the 1.5s:

Full 9s:

Proposed resolution

User interface changes

๐Ÿ“Œ Task
Status

Active

Version

0.0

Component

Page builder

Created by

๐Ÿ‡ฎ๐Ÿ‡ฑIsrael heyyo Jerusalem

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024