You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You want to embed Python in your application. Users can load plugins which are untrusted code. The app wants to be able to poll the plugins fairly, while limiting the resources they can access.
We do this by metering, after which the function is paused. We can either resume or drop it.
That way the app runs each untrusted script periodically for some increment of time. Just like how garbage collection strategies in some languages may run a little bit and then pause to avoid consuming too much resources, we can do the same. Also we can make it more costly to run a script, the longer it is running.
Summary
Check if this is available for RustPython
https://docs.rs/wasmer-middlewares/latest/wasmer_middlewares/metering/struct.Metering.html
Details
The text was updated successfully, but these errors were encountered: