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

Optimize getting byteLength in MemoryView::new #3590

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

rlane
Copy link
Contributor

@rlane rlane commented Feb 17, 2023

This js_sys::Reflect call was taking about 20% of my application's CPU time. After this change MemoryView::new only consumes 1% of total CPU.

@rlane rlane requested a review from syrusakbary as a code owner February 17, 2023 23:20
@syrusakbary
Copy link
Member

Great catch! Merging

@syrusakbary syrusakbary merged commit 8696abd into wasmerio:master Feb 18, 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.

2 participants