Skip to content
  • Benjamin Bouvier's avatar
    Refactor locale management (and optimize localeComparator); · c882cf92
    Benjamin Bouvier authored
    localeComparator is optimized by avoiding the expensive cache lookup of
    the collator "compare" function, which showed up in profiles. The
    function is now reset every time the locale is set, avoiding to store
    too much data in memory and avoiding the cache lookup against the
    current locale.
    c882cf92