Optimizations for Function.prototype.apply

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: 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)

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

              Created:
              Updated:
              Resolved: