Use regex instead of DOM parsing in BigPipe::getPlaceholderOrder()

Created on 27 March 2024, 3 months ago
Updated 29 April 2024, about 2 months ago

Problem/Motivation

Been doing some profiling on a large site I work on and although I don't entirely trust XHProf, BigPipe::getPlaceholderOrder() has been spotted as being particularly slow. This is because it calls Html::load() on the entire response (which invokes the Masterminds HTML5 parser to build the entire DOM structure) just to extract the placeholder IDs.

Steps to reproduce

Proposed resolution

As the HTML for the placeholders is fixed, use regex instead of DOM parsing to extract the IDs.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Downport

Version

10.3 ✨

Component
BigPipeΒ  β†’

Last updated about 13 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom longwave UK

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