Skip to content

Reduce codemap memory usage #990

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 6 commits into from
Apr 21, 2024
Merged

Reduce codemap memory usage #990

merged 6 commits into from
Apr 21, 2024

Conversation

Robbepop
Copy link
Member

@Robbepop Robbepop commented Apr 21, 2024

Closes #982.

This reduces the size_of<UncompiledFuncEntity>() from 88 bytes down to 56 bytes.
Technically we could shave off yet another 8 bytes but this would require more massive refactorings so this PR is a decent compromise.

Benchmarks conducted locally did not show significant performance regressions or improvements.

Copy link

codecov bot commented Apr 21, 2024

Codecov Report

Attention: Patch coverage is 22.85714% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 81.85%. Comparing base (023d06a) to head (02bd29c).

Files Patch % Lines
crates/wasmi/src/engine/code_map.rs 15.62% 27 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #990      +/-   ##
==========================================
- Coverage   81.89%   81.85%   -0.05%     
==========================================
  Files         262      262              
  Lines       24186    24204      +18     
==========================================
+ Hits        19808    19811       +3     
- Misses       4378     4393      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Robbepop Robbepop merged commit dfcde24 into master Apr 21, 2024
15 of 17 checks passed
@Robbepop Robbepop deleted the rf-reduce-codemap-mem-usage branch April 21, 2024 16:11
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.

Reduce wasmi::Engine memory consumption for storing function artifacts
1 participant