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

Outline code from the loop in ZipFile.Source.initCen

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Source.initCEN is showing considerable overhead on startup due spending a lot of time being interpreted, while methods it invokes are warmed up and JIT optimized promptly.

      By refactoring so that as much code and calculations as possible are moved from the outer initCEN loop into called methods we can help get relevant pieces of code through the JIT tiers faster, leading to a significant startup and warmup improvement.

      PoC implementation also shows an improvement to peak performance.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: