You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rust intl-memoizer has the concept of IntlMemoizer that stores its lang-memoizers internally, we could use it by having L10nRegistry instance have its own instance of IntlMemoizer which returns a reference to IntlLangMemoizer for a given lang that is then used by each FluentBundle.
We'd likely need to add a threadsafe version of that pan-lang memoizer.
The text was updated successfully, but these errors were encountered:
At the moment each new
FluentBundle
gets newIntlLangMemoizer
and in result newPluralRules
instance.This has been floated around for a bit in projectfluent/fluent.js#218 and https://bugzilla.mozilla.org/show_bug.cgi?id=1475356
The Rust
intl-memoizer
has the concept ofIntlMemoizer
that stores itslang-memoizers
internally, we could use it by havingL10nRegistry
instance have its own instance ofIntlMemoizer
which returns a reference toIntlLangMemoizer
for a given lang that is then used by eachFluentBundle
.We'd likely need to add a threadsafe version of that pan-lang memoizer.
The text was updated successfully, but these errors were encountered: