perf(turbopack): Spawn only one thread for one `write file` effect (#79318)
### What? Replace `retry_future` call with `retry_blocking`. ### Why? `tokio::fs` is a trap for this kind of usage. Each function call will spawn one thread until it reaches the thread pool limit. Our previous code could spawn at most eight threads to handle one `write file` effect. The numbers at x-ref: https://vercel.slack.com/archives/C06PPGZ0FD3/p1747437041264999
Showing
Please
register
or
sign in
to comment