Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4747354

Use ASCIICaseInsensitiveComparator for locale tables

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.2
    • core-libs
    • None
    • mantis
    • generic
    • generic

      Investigation into traces of J2SE startup time has shown a significant
      amount of time being spent in case-insensitive string comparison. Some
      tables used internally to the JDK (specifically those related to
      locale and character set names) use the java.lang.String
      case-insensitive comparator, which, in order to support the Turkish
      locale properly, can end up performing both Character.toUpperCase()
      and Character.toLowerCase() on character inputs. These tables contain
      only US-ASCII data; changing them to use a non-Turkish-compliant
      case-insensitive comparator yields a small but consistent speedup.

            kbr Kenneth Russell (Inactive)
            kbr Kenneth Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: