PlatformUtils is unoptimized

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 7u6
    • Affects Version/s: fx2.0, fx2.1
    • Component/s: 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.patch
          3 kB
        2. RT-20357.2.patch
          5 kB
        3. RT-20357.3.patch
          3 kB

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

              Created:
              Updated:
              Resolved:
              Imported: