Page MenuHomePhabricator

Characters appear after a delay when typing in large article translation
Closed, ResolvedPublic

Description

In the translation of large articles, such as en:Paris, typing has a very delayed response, and page appears hanged in between keypresses.

Event Timeline

A performance analys shows section aligment causes the pauses in the responsiveness

image.png (235×1 px, 223 KB)

santhosh triaged this task as High priority.

Change 443051 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Use debounce to align section pairs instead of throttle

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

Change 443058 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Improve section alignment performance

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

Change 443051 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Use debounce to align section pairs instead of throttle

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

Change 443058 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Improve section alignment performance

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

Nikerabbit renamed this task from Characters appear after a delay when typing in larget article translation to Characters appear after a delay when typing in large article translation .Jul 4 2018, 8:36 AM

Change 443943 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Improve section alignment performance

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

Etonkovidova added subscribers: Pginer-WMF, Etonkovidova.

Checked in cx2 - there is the improvement in performance time for mw.cx.ui.TranslationView.static.alignSectionPair (two samples are below):

Screen Shot 2018-08-10 at 5.43.02 PM.png (265×640 px, 66 KB)
Screen Shot 2018-08-10 at 5.51.03 PM.png (289×920 px, 70 KB)

But there is still a noticeable delay in characters appearing when typing. Such delay is not present in production.

@Pginer-WMF May be there should a more general task for performance evaluation? I am marking this task as Resolved for now.

Steps that were performed for testing:

  1. Start 'New translation' for en:Paris article
  2. Click on any paragraph to translate.
  3. When a paragraph is translated, start typing in the paragraph - the typed characters will appear with a delay.

Change 443943 abandoned by Santhosh:
Improve section alignment performance

Reason:
Need a fresh look into the root causes

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