Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize arrays and array operations #3407

Open
4 tasks
jedel1043 opened this issue Oct 21, 2023 · 0 comments
Open
4 tasks

Optimize arrays and array operations #3407

jedel1043 opened this issue Oct 21, 2023 · 0 comments
Labels
performance Performance related changes and issues

Comments

@jedel1043
Copy link
Member

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

@jedel1043 jedel1043 added the performance Performance related changes and issues label Oct 21, 2023
@jedel1043 jedel1043 moved this to To do in Boa pre-v1 Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance related changes and issues
Projects
Status: To do
Development

No branches or pull requests

1 participant