L20n/Firefox/Performance: Difference between revisions

Line 1: Line 1:
==Summary==
==Summary==


Current (slowed down) [https://cleopatra.io/#report=0b08d311419a088b771e58056adc2870c12beabb&search=l20n&javascriptOnly=true&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A14153,%22end%22%3A14455%7D,%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A14153,%22end%22%3A14406%7D%5D&selection=0,327,143,143,328,329,330,15,331,332,333,334,335,336,339,342,343,337 profile from cleopatra].
Current (slowed down) [https://cleopatra.io/#report=bacff00c928f3c83843553cfe69b59cb518504ad&search=l20n&javascriptOnly=true&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A17928,%22end%22%3A18302%7D%5D&selection=0,928 profile from cleopatra].


Here's the analysis of a (full-speed) time allocation:
Here's the analysis of a (full-speed) time allocation:


* 5ms parsing
* 5ms parsing
* 4ms getting resource links
* 3ms getting resource links
* 4ms creating Localization object, create permutation of Bundles, starting IO
* 3ms creating Localization object, create permutation of Bundles, starting IO
* 4ms getTranslatables. '''queryElementSelector''' cost
* 5ms getTranslatables. '''queryElementSelector''' cost
* 4ms apply translations, inserting into DOM
* 5ms apply translations, inserting into DOM
* 3ms formatting to strings
* 4ms formatting to strings
* 2ms create chrome resource bundle
* 2ms create chrome resource bundle
* 6ms .... connecting the dots
* 6ms .... connecting the dots
Confirmed users
1,016

edits