You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(fs): use std::fs instead of tokio::fs in FileSystemOs
tokio::fs offloads every syscall to the blocking threadpool (semaphore +
task harness + park/unpark). Resolution issues a large number of tiny
stat/read calls whose kernel time is dwarfed by that per-call scheduling
overhead (~14% of total instructions in the resolver callgrind bench).
std::fs runs them inline, matching the existing wasm impl and the
upstream synchronous resolver. The async FileSystem trait is unchanged;
callers wanting resolution off the reactor should spawn_blocking the
whole resolve, not each syscall.
0 commit comments