Prefer a single document.l10n.formatValues call to multiple document.l10n.formatValue calls.
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox80 fixed)
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: mossop, Assigned: mossop)
References
Details
(Keywords: perf-alert)
Attachments
(1 file)
Bug 1642398: Add a lint rule to warn about multiple calls to document.l10n.formatValue. r=Standard8!
47 bytes,
text/x-phabricator-request
|
Details | Review |
Not sure how lintable this is but we should prefer document.l10n.formatValues
over multiple calls to document.l10n.formatValue
. See https://searchfox.org/mozilla-central/source/browser/base/content/pageinfo/pageInfo.js#291-303 for a poor example.
I was thinking that maybe we could lint for multiple calls to document.l10n.formatValue in the same code block.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
I think we should probably block on bug 1642423 for this to get a nicer syntax.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:mossop, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 4•5 years ago
|
||
This patch cannot land until the lints it complains about are fixed.
Comment 6•5 years ago
|
||
bugherder |
Comment 7•5 years ago
|
||
== Change summary for alert #26519 (as of Thu, 16 Jul 2020 06:24:24 GMT) ==
Improvements:
33% build times windows2012-32-shippable opt instrumented taskcluster-c5.4xlarge 2,196.05 -> 1,478.37
32% build times windows2012-32-shippable opt instrumented taskcluster-c5d.4xlarge 2,189.45 -> 1,498.75
28% build times windows2012-32-shippable opt instrumented taskcluster-m5.4xlarge 2,280.53 -> 1,637.17
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=26519
Comment 8•5 years ago
|
||
(In reply to Florin Strugariu [:Bebe] (needinfo me) from comment #7)
== Change summary for alert #26519 (as of Thu, 16 Jul 2020 06:24:24 GMT) ==
Improvements:
33% build times windows2012-32-shippable opt instrumented taskcluster-c5.4xlarge 2,196.05 -> 1,478.37
32% build times windows2012-32-shippable opt instrumented taskcluster-c5d.4xlarge 2,189.45 -> 1,498.75
28% build times windows2012-32-shippable opt instrumented taskcluster-m5.4xlarge 2,280.53 -> 1,637.17For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=26519
This is misattribution. The improvement comes from bug 1651938.
Updated•3 years ago
|
Description
•