calimero-network / core

Calimero 2.0
https://calimero-network.github.io/
Other
21 stars 0 forks source link

Task Manager Cache #188

Open chefsale opened 2 months ago

chefsale commented 2 months ago

Implement a task manager cache to optimize WASM runtime loading

Estimate experimental: ~1 weeks Estimate production: ~2 weeks

miraclx commented 1 month ago

Ref:

A line of thought led down this path: batching transactions won't be necessary if we're able to get #188 right.

Ideally, we merge this into that.

Instead of reusing just the WASM module Instance, we define syscall patterns for fetching the next function call, dispatching that, and be able to execute multiple method calls in one WASM instantiation exporting just one method for the entrypoint.

The only thing we'd be lacking is the ability to externally get symbol names from the WASM blob. Not as useful anyway, which is why #270 exists.

Interesting stuff. Breaking change though, so worth factoring in before we launch.

Originally posted by @miraclx in https://github.com/calimero-network/core/issues/191#issuecomment-2106079013