UV_USE_IO_URING=value


在支持的平台上启用或禁用 libuv 对 io_uring 的使用。

¥Enable or disable libuv's use of io_uring on supported platforms.

在支持的平台上,io_uring 可以显着提高各种异步 I/O 操作的性能。

¥On supported platforms, io_uring can significantly improve the performance of various asynchronous I/O operations.

出于安全考虑,io_uring 默认处于禁用状态。当启用 io_uring 时,应用不得在运行时更改进程的用户身份。在这种情况下,诸如 process.setuid() 之类的 JavaScript 函数将不可用,并且原生插件不得调用诸如 setuid(2) 之类的系统函数。

¥io_uring is disabled by default due to security concerns. When io_uring is enabled, applications must not change the user identity of the process at runtime. In this case, JavaScript functions such as process.setuid() are unavailable, and native addons must not invoke system functions such as setuid(2).

该环境变量由 Node.js 的依赖实现,可能会在 Node.js 的未来版本中删除。不为此环境变量的行为提供稳定性保证。

¥This environment variable is implemented by a dependency of Node.js and may be removed in future versions of Node.js. No stability guarantees are provided for the behavior of this environment variable.