wasmi-labs / wasmi

WebAssembly (Wasm) interpreter.
https://wasmi-labs.github.io/wasmi/
Apache License 2.0
1.52k stars 274 forks source link

Add new instance cache: `CachedInstance` #1076

Closed Robbepop closed 2 weeks ago

Robbepop commented 2 weeks ago

This new instance cache works very different from the old one and is supposedly way more efficient. It relies on the executor updating it whenever the currently used Instance has been changed. While the executor is in control over that the CachedInstance provides an efficient way to access Instance related data.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 93.20388% with 7 lines in your changes missing coverage. Please review.

Project coverage is 80.50%. Comparing base (82d96f3) to head (69c0f01). Report is 1 commits behind head on master.

Files Patch % Lines
crates/wasmi/src/engine/executor/cache.rs 94.54% 3 Missing :warning:
crates/wasmi/src/engine/executor/instrs.rs 72.72% 3 Missing :warning:
crates/wasmi/src/engine/executor/stack/calls.rs 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1076 +/- ## ========================================== + Coverage 80.47% 80.50% +0.03% ========================================== Files 269 269 Lines 24974 24992 +18 ========================================== + Hits 20097 20120 +23 + Misses 4877 4872 -5 ```

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