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

Lazily initialize memory views #3253

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

Liamolucko
Copy link
Collaborator

This stops load-time errors in versions of Safari before 15 if the BigInt64Array or BigUint64Array memory views are included but never used.

Pointed out in #2716 (comment).

This stops load-time errors in versions of Safari before 15 if the `BigInt64Array` or `BigUint64Array` memory views are included but never used.

Pointed out in rustwasm#2716 (comment).
@alexcrichton
Copy link
Contributor

Could this perhaps just be done for u64? I think that this was how it once was long ago and it was switched to the current pattern as it was slightly more performant.

@Liamolucko
Copy link
Collaborator Author

I think you're thinking of #2886, which did include that change, but it wasn't where the performance wins came from; it was just another thing I happened to change.

@alexcrichton
Copy link
Contributor

Ah sorry, indeed!

@alexcrichton alexcrichton merged commit a4788ca into rustwasm:main Jan 24, 2023
@Liamolucko Liamolucko deleted the lazy-initialize-memviews branch January 26, 2023 05:10
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.

2 participants