Closed
Bug 838572
Opened 13 years ago
Closed 12 years ago
consider pushing l10n later in the startup cycle to speed up HTML drawing
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(1 file, 1 obsolete file)
|
613 bytes,
text/plain
|
Details |
Since we're precompiling l10n now, it seems to be potentially beneficial to minimize the startup competition within the app by moving l10n post onload.
This also gets us closer to the ideal of apps splitting JS initialization into two phases: one that happens onload and one that happens when 'localized' is fired plus reward l10n in HTML.
| Assignee | ||
Comment 1•13 years ago
|
||
POC that moves l10n.js to defer (~50ms win) and delays loading l10n post onload.
| Assignee | ||
Comment 2•13 years ago
|
||
|| master || patch || delta
===========||=============||=============||=========
Template || 530 (10) || 532 (10) || +2
Settings || 2002 (51) || 1704 (61) || -298
SMS || 1384 (42) || 1211 (17) || -173
Calendar || 1909 (26) || 1876 (40) || -33
Email || 3384 (20) || 3329 (25) || -55
Contacts || 2733 (19) || 1895 (41) || -838
Browser || 1090 (40) || 1076 (20) || -14
Dialer || 1361 (51) || 1333 (14) || -28
It's not as rosy as it seems since we're actually delaying firing "localized" event and all strings that are added to the screen from JS will show up later, but it does give some nice wins for some apps (in particular, Contacts, Settings and SMS) so it may be worth investigating.
| Assignee | ||
Comment 3•13 years ago
|
||
I can still reproduce the same win with the same apps on todays nightly:
|| master || patch || delta
===========||=============||=============||=========
Template || 401 (26) || 412 (6) || +11
Settings || 1747 (92) || 1485 (6) || -262
SMS || 1229 (86) || 1059 (37) || -170
Calendar || 1824 (25) || 1809 (12) || -15
Email || 2797 (84) || 2778 (74) || -19
Contacts || 906 (9) || 888 (20) || -18
Browser || 972 (39) || 978 (32) || +6
Dialer || 1065 (22) || 1035 (15) || -30
| Assignee | ||
Comment 4•13 years ago
|
||
today's build
|| master || patch || delta
===========||=============||=============||=========
Template || 346 || 346 || 0
Settings || 1086 || 1013 || -73
SMS || 1045 || 982 || -63
Calendar || 1291 || 1308 || +17
Email || 2620 || 2557 || -63
Contacts || 847 || 833 || -14
Browser || 1084 || 1049 || -35
Dialer || 1016 || 996 || -20
it still seems to be beneficial, but not by a high margin anymore
| Assignee | ||
Comment 5•13 years ago
|
||
updated patch.
Chris: is it worth pursuing this direction or should we close this bug?
Assignee: nobody → gandalf
Attachment #710656 -
Attachment is obsolete: true
Flags: needinfo?(jones.chris.g)
Looks like the data says that this isn't worth investing in right now.
Flags: needinfo?(jones.chris.g)
Comment 7•12 years ago
|
||
Should this bug be closed, then?
Comment 8•12 years ago
|
||
per above comments
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•