WASIX's file-based module cache will block the runtime thread #3851
Labels
bug
Something isn't working
📦 lib-wasi
About wasmer-wasi
lib-wasix
Issues related to the WASIX toolchain.
priority-medium
Medium priority issue
Describe the bug
The fs-based cache WASIX uses for compiled modules is called from
async
code, but uses synchronous IO for reading the file and deserializing. This happens in both the current version (here and here) and the version introduced in #3841 (here).We need to tweak the new
FileSystemCache
implementation to either use thetokio::fs
module (typing theFileSystemCache
to a tokio runtime) or make theFileSystemCache
accept anArc<dyn VirtualTaskManager>
parameter in its constructor and do the blocking IO viaspawn_blocking()
.The text was updated successfully, but these errors were encountered: