NativeArguments improvements

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None

      NativeArguments is inefficient in that the arguments array is copied eagerly in the constructor and stored in the class's namedArgs field. This also requires dozens of ScriptObject methods to be overridden.

      We can simplify and speed up NativeArguments by storing arguments in the arrayData field and only create the namedArgs field if an argument is deleted or redifined.

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

              Created:
              Updated:
              Resolved: