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

[PERF] Lightweight Node Construction #82

Open
3 tasks
iamrecursion opened this issue Sep 11, 2023 · 0 comments
Open
3 tasks

[PERF] Lightweight Node Construction #82

iamrecursion opened this issue Sep 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@iamrecursion
Copy link
Contributor

Description

As node construction is one of the most common operations in the virtual machine, it is important that it be as cheap as possible.

Currently this is quite a heavyweight task due to the boxed structure of the value tree. This could be improved.

Spec

  • Come up with an artificially flat representation for these nodes. This will make allocation effectively arena-like using a vector and indices as pointers.
  • Make this type safe.
  • Re-engineer the value representation around this.
@iamrecursion iamrecursion added the enhancement New feature or request label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant