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

[JS] Table.toArray() allocates a large array. #44246

Open
swallez opened this issue Sep 27, 2024 · 0 comments
Open

[JS] Table.toArray() allocates a large array. #44246

swallez opened this issue Sep 27, 2024 · 0 comments

Comments

@swallez
Copy link
Member

swallez commented Sep 27, 2024

Describe the enhancement requested

Table.toArray() allocates an array of the size of the table to store proxies to each of the rows.

This can be large and consume a significant amount of memory. A proxy that wraps the table and acts as an array would avoid this and provide a near zero cost struct array view of the table.

Component(s)

JavaScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant