-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
src: UV_RUN_ONCE in a loop is inefficient #8496
Copy link
Copy link
Closed
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.lib / srcIssues and PRs related to general changes in the lib or src directory.Issues and PRs related to general changes in the lib or src directory.
Metadata
Metadata
Assignees
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.lib / srcIssues and PRs related to general changes in the lib or src directory.Issues and PRs related to general changes in the lib or src directory.
Type
Fields
Give feedbackNo fields configured for issues without a type.
src/node.cc calls
uv_run(loop, UV_RUN_ONCE)in a loop:uv_run()looks like this:The way we use UV_RUN_ONCE is:
uv__update_time()is called twice. It's expensive on systems where querying the system time is expensive (e.g. virtualized systems.)Branched off #8460 (comment).