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

Optimizations for Function.prototype.apply

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • b115
    • generic
    • generic

      Function.prototype.apply is the most used builtin function in Octane according to JDK-8025964. It has some potential for optimization.

       - The generic methodhandle is currently created for each invocation, which may involve creation of MethodType or MethodHandle instances.
       - The parameter-spreading case statement does not support enough parameters (this may become obsolete as MethodHandle.invokeWithArguments() becomes more optimized)

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: