stellar / rs-soroban-env

Rust environment for Soroban contracts.
Apache License 2.0
59 stars 40 forks source link

Decompose VM instantiation costs and add module cache #1359

Closed graydon closed 4 months ago

graydon commented 5 months ago

This is a sketch of the first step in the plan for addressing #1292 and eventually #827 and #1313, namely:

This PR has accompanying changes in XDR and wasmi:

Remaining to do:

graydon commented 4 months ago

Updated significantly:

This is getting close to where I want to merge it, I think it's a fairly good set of perf wins.

graydon commented 4 months ago

Updated to address all comments (and all revisions from CAP review process today)

jayz22 commented 4 months ago

Added https://github.com/stellar/rs-soroban-env/issues/1374 to follow up on setting up ModuleCache, calibrating its cost, and charging for it in the hit path.