namada icon indicating copy to clipboard operation
namada copied to clipboard

wasm: switch to cranelift compiler

Open tzemanovic opened this issue 1 year ago • 1 comments

Describe your changes

Taking advantage of tx allowlist that prohibit execution of untrusted wasm, we can switch to cranelift compiler to improve wasm performance.

TODOs:

  • [ ] use singlepass compiler for dry-run RPC (needed for gov proposals? tbc.) or disable dry-run RPC by default unless explicitly enabled in the config

Indicate on which release or other PRs this topic is based on

Checklist before merging to draft

  • [ ] I have added a changelog
  • [ ] Git history is in acceptable state

tzemanovic avatar May 07 '24 08:05 tzemanovic

Codecov Report

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

Project coverage is 59.40%. Comparing base (9d4de02) to head (a37a2a5). Report is 12 commits behind head on main.

Files Patch % Lines
...tes/namada/src/vm/wasm/compilation_cache/common.rs 0.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3183      +/-   ##
==========================================
- Coverage   59.40%   59.40%   -0.01%     
==========================================
  Files         298      298              
  Lines       92326    92326              
==========================================
- Hits        54849    54848       -1     
- Misses      37477    37478       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 07 '24 08:05 codecov[bot]