Closed Bug 1237022 Opened 8 years ago Closed 6 years ago

Introduce Intl DOM

Categories

(Firefox OS Graveyard :: Gaia::L10n, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: zbraniecki, Unassigned)

References

Details

Intl DOM is an extension of Intl Helper that sets up a MutationObserver and allows for DOM nodes internationalization.
I added intl_dom to Settings to check the cost of new MutationObserver being set.

The base is master, 1 is intl_dom.js injected sync, 2 is intl_dom.js injected deferred.

default:
settings.gaiamobile.org  base: mean  1: mean  1: delta  1: p-value  2: mean  2: delta  2: p-value
-----------------------  ----------  -------  --------  ----------  -------  --------  ----------
contentInteractive              926     1017        91      * 0.00      937        11        0.30
navigationLoaded                934     1025        91      * 0.00      945        10        0.34
navigationInteractive           934     1025        91      * 0.00      945        10        0.34
startupPathEnd                 1665     1767       102      * 0.00     1684        19        0.26
visuallyLoaded                 2202     2306       104      * 0.00     2220        17        0.28
fullyLoaded                    4771     4862        91      * 0.00     4781        10        0.50
pss                          21.159   21.651     0.493      * 0.00   21.338     0.179        0.29
rss                          36.661   37.189     0.528      * 0.00   36.865     0.204        0.24
uss                          16.922   17.416     0.494      * 0.00   17.099     0.177        0.30

pseudo:
settings.gaiamobile.org  base: mean  1: mean  1: delta  1: p-value  2: mean  2: delta  2: p-value
-----------------------  ----------  -------  --------  ----------  -------  --------  ----------
contentInteractive              938     1004        66      * 0.00      952        14        0.20
navigationLoaded               1481     1547        66      * 0.00     1498        17        0.32
navigationInteractive          1482     1547        65      * 0.00     1499        17        0.32
startupPathEnd                 2069     2162        93      * 0.00     2119        51      * 0.02
visuallyLoaded                 2646     2740        94      * 0.00     2695        49      * 0.01
fullyLoaded                    5218     5282        64      * 0.00     5242        24        0.11
uss                          19.940   19.894    -0.046        0.79   19.878    -0.062        0.69
pss                          24.093   23.989    -0.103        0.55   23.979    -0.113        0.47
rss                          39.725   39.739     0.014        0.93   39.695    -0.030        0.85

It's fairly preliminary but my guess is that injecting MutationObserver synchronously will cost, injecting it asynchronously will cost very little.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.