Closed
Bug 1424077
Opened 7 years ago
Closed 7 years ago
Consider limiting parsing only locales in the current locale fallback chain at startup
Categories
(WebExtensions :: General, enhancement)
WebExtensions
General
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: zbraniecki, Unassigned)
Details
Currently, it seems that when Gecko loads a WebExtension it loads all available locale resources for all locales and parses them eagerly. But then, during runtime, it only uses locale resources for locales in the locale fallback chain. It seems like a simple optimization would be to only load/parse data for locales that are in the fallback chain, and invalidate/reload on `intl:app-locales-changed`. It may be a pretty significant win in cases where users are installing extensions with, say, 100 locales, but their fallback chain will usually be max 2 locales.
Comment 1•7 years ago
|
||
No, we parse all locales at install time, but we only load active locales at startup.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•