Gregory Sobol

Results 14 comments of Gregory Sobol

> is providing an opt-in validation option. If you mean - check `bytes` before calling this method, then it's not the most optimal way. Because then we have to copy...

> I meant a `validate: bool` argument. You might not want to revalidate an immutable bytes slice after a first validation. Would that satisfy your use case. Yep, if you...

See file: [core-processor/src/configs.rs](https://github.com/gear-tech/gear/pull/882/files/435cf8900c40d8e1a5b186a51974937c3118e7d5#diff-f6d89e9834d25043e83dd5d621902d26985f0bbe925c987a6660b70910ef4bdc)

Currently problem for `inf_loop` is solved. But we also have to make test which will check the case.

Also add new errors in RIError (we cannot add nothing currently by the same reason - RIError must be the same for old runtimes)

> Also add new errors in RIError (we cannot add nothing currently by the same reason - RIError must be the same for old runtimes) As practices shows, that not...

We can only do that for wasmtime back-end, because wasmi is just interpreter and does not compile wasm programs. We can use wasmtime [caching functionality](https://docs.wasmtime.dev/api/wasmtime/#:~:text=cache%20%2D%20Enabled%20by%20default%2C%20this%20feature%20adds%20support%20for%20wasmtime%20to%20perform%20internal%20caching%20of%20modules%20in%20a%20global%20location.%20This%20must%20still%20be%20enabled%20explicitly%20through%20Config%3A%3Acache_config_load%20or%20Config%3A%3Acache_config_load_default.). There is one problem: we...

Made for wasmer executor: https://github.com/gear-tech/substrate/pull/10