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

feat(indexing): generalize buffer-backed operations #103

Merged
merged 3 commits into from
Aug 29, 2023
Merged

feat(indexing): generalize buffer-backed operations #103

merged 3 commits into from
Aug 29, 2023

Conversation

manzt
Copy link
Owner

@manzt manzt commented Aug 29, 2023

All the array containers (except for Array) are backed by ArrayBuffer, but we currently have special handling for our string array containers.

This PR generalizes the indexing algorithm to operate on the "raw" bytes directly for any data. This way we only move contigous blocks of binary data between src and target and avoid needing to move data out of the buffers into JS objects.

@manzt manzt merged commit eb840b9 into main Aug 29, 2023
2 checks passed
@manzt manzt deleted the binary branch August 29, 2023 18:51
@github-actions github-actions bot mentioned this pull request Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant