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

PlatformUtils is unoptimized

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • fx2.0, fx2.1
    • javafx

      The PlatformUtils class does string comparisons every time somebody asks for whether we are on mac, windows, etc. These checks happen in Prism and Controls on a regular basis. By computing this value once and then doing simple int comparisons we can make this class much faster. There is no profiling data to indicate that this is a problem, but simple inspection and a realization that we're running now on very low end hardware with interpreter and no JIT makes it clear that this must be fixed.

        1. RT-20357.2.patch
          5 kB
          Richard Bair
        2. RT-20357.3.patch
          3 kB
          Richard Bair
        3. RT-20357.patch
          3 kB
          Richard Bair

            rbair Richard Bair (Inactive)
            rbair Richard Bair (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: