Page MenuHomePhabricator

Improve performance of getModifiedLinkRanges on long articles
Closed, ResolvedPublic

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.

See also T418532 for relevant performance benchmarks

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

Change #1240003 merged by jenkins-bot:

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

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

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

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c8db73677)

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

Change #1249278 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c8db73677)

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

@dchan: can you please share what (if anything) is left to be done here? Further, can you please help me understand the impact of us not optimizing the performance of getModifiedLinkRanges?

Should this task be resolved? @dchan @Esanders
I see patches that are +2.