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

Optimize Character for US-ASCII

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 that the
      single largest consumer of startup time for non-GUI Java applications
      is the static initializer for java.lang.Character. This routine
      initializes several large tables containing the results for routines
      such as isDigit() or isJavaIdentifierStart() for all Unicode
      characters. The loops that initialize these tables are long-running.

      At least the US-ASCII case should be optimized to avoid the
      initialization of these large tables during startup in that locale. A
      more general fix may be to split up the tables into ranges so that for
      a given locale only a small fraction of the overall table is
      initialized in the common case.

            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: