Page MenuHomePhabricator

Improve performance of getModifiedLinkRanges on long articles
Open, Needs TriagePublic

Description

On [[Georgia_(U.S._state)]] this takes about 500ms, mostly checking each link to see if it is in a valid section.

We should probably pre-compute the section ranges to optimise for this slow case.

Event Timeline

Change #1238791 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] getModifiedAnnotationRanges: Improve performance

https://gerrit.wikimedia.org/r/1238791

Change #1238791 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] getModifiedAnnotationRanges: Improve performance

https://gerrit.wikimedia.org/r/1238791

Change #1238825 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] EditCheckFactory: run all checks inside a requestIdleCallback

https://gerrit.wikimedia.org/r/1238825

Change #1240003 had a related patch set uploaded (by Divec; author: Divec):

[VisualEditor/VisualEditor@master] WIP: Per-node cache that gets invalidated by relevant transactions only

https://gerrit.wikimedia.org/r/1240003