线程池使用
¥Threadpool usage
所有基于回调和 promise 的文件系统 API(fs.FSWatcher()
除外)都使用 libuv 的线程池。这可能会对某些应用产生令人惊讶的负面性能影响。有关更多信息,请参阅 UV_THREADPOOL_SIZE
文档。
¥All callback and promise-based file system APIs (with the exception of
fs.FSWatcher()
) use libuv's threadpool. This can have surprising and negative
performance implications for some applications. See the
UV_THREADPOOL_SIZE
documentation for more information.