Skip to content

Fix typed array views obtained using the loader #857

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

Merged
merged 1 commit into from
Sep 21, 2019
Merged

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Sep 20, 2019

As discovered in #850 the views created by the loader are intended to view the memory without copying, so TypedArray#subarray or the respective constructor must be used instead of TypedArray#slice, which copies.

@dcodeIO
Copy link
Member Author

dcodeIO commented Sep 20, 2019

cc @MaxGraey As a consequence, I believe the initial benchmarks done here are wrong since these involve copying overhead.

@dcodeIO dcodeIO merged commit 812f2eb into master Sep 21, 2019
@dcodeIO dcodeIO deleted the issue-850 branch November 8, 2019 01:59
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