Stream: wasi

Topic: Some notes on wasmtime-wasi's tokio implementation


view this post on Zulip Pat Hickey (Feb 22 2024 at 23:42):

I just wrote this response on GitHub that gives a bunch of context on why wasmtime-wasi uses tokio, even in a synchronous embedding, despite that being (apprently) pretty costly in terms of File IO performance compared to competing runtimes. Maybe this is good reading for folks who weren't involved in that design, and I welcome questions and comments on it https://github.com/bytecodealliance/wasmtime/issues/7973#issuecomment-1960513214

Test Case test.c #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> int main() { FILE *fp; char str[14]; for (int i = 1; i < 1000; i++) { int fd = open("test.txt", O_CREA...

Last updated: Dec 23 2024 at 12:05 UTC