Closed Bug 1298122 Opened 8 years ago Closed 8 years ago

Optimize IO

Categories

(L20n :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zbraniecki, Assigned: zbraniecki)

Details

(Whiteboard: [gecko-l20n])

One of the identified bottlenecks of the l20n in XUL on larch branch is IO (see bug 1289530 comment 5 and later).

I'd like to try to make an attempt to get the IO as early as possible and as sync as necessary as it will unblock everything else in l20n startup path.
Whiteboard: [gecko-l20n]
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
According to Zibi's findings which I also reproduced today it doesn't really matter when exactly the IO starts.  In (A) all of L20n's initialization is run after the documentReady() promise resolves.  In (B) the IO starts as soon as possible (as soon as we can query for <link rel="localization">).

  (A) IO starts: 100 ms, IO ends: 140 ms,
  (B) IO starts:  40 ms, IO ends: 140 ms.

In (B) we still need to guard the initial translation of the document with documentReady().  The reason for this is that we can't rely on the unguarded MutationObserver in XUL documents: bug 1294197.
We increased the amount of talos runs in order to improve the reliability of the results.

New try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=370c9b0bb54b

we'll compare it against the results from bug 1289530 comment 14.
This is long done.

https://wiki.mozilla.org/L20n/Firefox/Performance
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.