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

Add support for Lazy code generation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • core-libs
    • None

      By compiling only the script and ignoring inner functions until they are called, replacing them with trampolines, we can improve startup time.

      This also makes it possible to specialize inner functions on callsite instead of generating an object parameter -> object return value function. See e.g. crypto#am3 for potential large speedup.

      Downside is that we generate more classes. Lazy heuristic should probably be tweaked so we generate several functions at once or something.

            lagergren Marcus Lagergren
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: