Page MenuHomePhabricator

[Rust Q2] Avoid reading .wasm binaries in async tasks
Open, MediumPublic

Description

Description

Rust limits file I/O to the main thread, causing contention if multiple worker threads want to read a file. Therefore, instead of reading the .wasm binaries each time we spin up a new task, we should instead read the contents of the .wasm files ONCE and store them locally so that worker threads can simply borrow them.

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • no more file I/O initiated by worker threads

Completion checklist