Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33835

LocaleSorter#sortLocalesByPreference is slow

    XMLWordPrintableJSON

Details

    Description

      LocaleSorter#sortLocalesByPreference is slow and creates a lot of allocations

      See the scout screenshot on ios / Ipad2 with ONLY 4 compiled locales (657ms).

      with the patch, on my desktop (with about 50 compiled locales ) time went from 180ms to 15ms.

      Attachments

        1. patch.diff
          3 kB
          Justin Mclean
        2. localesorter.png
          27 kB
          Benoit Wiart
        3. 0001-localesorter-optimization.patch
          4 kB
          Benoit Wiart

        Activity

          People

            jmclean Justin Mclean
            benoitw Benoit Wiart
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: