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

Optimize Location.locationFor/isModuleOrientedLocation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • tools

      Leyden's JavacBenchApp benchmarks shows ~1% of time of the very first iteration is spent doing Pattern.compile in Location.isModuleOrientedLocation. Additionally, Pattern.compile becomes hot and requires JIT compilation, which eats CPU time. We can fix that.

      There is also a little matching bug (JDK-8351561), which this performance improvement would retain.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: