Skip to content

Optimize arrays and array operations #3407

Description

@jedel1043

There are several things that we could improve in our implementation of arrays that should improve performance considerably.

  • Array.prototype.unshift
  • Array.prototype.splice
  • Preserve dense arrays when removing properties at start and middle
  • Element arrays

Some resources:

https://v8.dev/blog/elements-kinds

https://dev.to/puzpuzpuz/v8-deep-dives-understanding-array-internals-3jdf

https://www.dashlane.com/blog/how-is-data-stored-in-v8-js-engine-memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PerformancePerformance related changes and issues

    Type

    No type

    Projects

    Status
    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions