Hacker News new | past | comments | ask | show | jobs | submit login

"Node (libuv) only uses the thread pool as a last resort."

When did you last read deps/uv/src/win/fs.c or deps/uv/src/unix/fs.c?

If by "last resort" you mean 99.9% of all async fs tasks, then I would agree with you.




isn't that because OSes have broken async filesystem APIs that can't be trusted?

But network requests (like dns) have well defined APIs for async, and should never be required to block a thread, and therefore do not need a threadpool.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: