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

remove memory footprint computation #4389

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Conversation

maminrayej
Copy link
Contributor

We calculate the module_memory_footprint in load_package_tree by collecting atoms in a set and adding their lengths together which is a costly operation. But, we don't use the calculated value anywhere in the code base. load_package_tree is in the critical path when running a package so removing these computation is beneficial.

before:

wasmer_wasix::runtime::package_loader::load_package_tree: close time.busy=60.9ms time.idle=2.12µs

after

wasmer_wasix::runtime::package_loader::load_package_tree: close time.busy=64.0µs time.idle=1.20µs

Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked with @theduke andmodule_memory_footprint isn't used anywhere, so this should be an easy win 👍

@Michael-F-Bryan Michael-F-Bryan merged commit 59577e7 into master Jan 4, 2024
52 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the remove-mem-footprint branch January 4, 2024 09:27
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