Page MenuHomePhabricator

Consider ways that SyntaxHighlight's VisualEditor code could reduce or batch its parsefragment API calls
Closed, DuplicatePublic

Description

Using Visual Editor on articles heavy using extension results in many parsefragment API calls.

I use VisualEditor in conjunction with mediawiki's default SyntaxHighlight extension, which overloads my PHP API handler on programming related articles.

Computer programming articles, such as https://en.wikipedia.org/wiki/JavaScript_syntax, can include hundreds of syntaxhighlight code blocks.

On PHP-FPM run wikis, a page like this would result in a single user query creating ~100 child processes.

Is there a way to reduce or batch said queries?

Event Timeline

Jdforrester-WMF renamed this task from VisualEditor triggers numerous parsefragment API calls to Consider ways that SyntaxHighlight's VisualEditor code could reduce or batch its parsefragment API calls.May 2 2017, 7:08 PM
Jdforrester-WMF triaged this task as Lowest priority.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.