Commit 007a0338 authored by Brian White's avatar Brian White Committed by James M Snell
Browse files

dns: improve callback performance

It appears that either c-ares no longer calls callbacks synchronously
or we have since explicitly taken care of the scenarios in which
c-ares would call callbacks synchronously (e.g. resolving an IP
address or an empty hostname). Therefore we no longer need to have
machinery in place to handle possible synchronous callback invocation.
This improves performance significantly.

PR-URL: https://github.com/nodejs/node/pull/13261


Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent dccd1d2d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment