Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Conversation

@gcochard
Copy link

If getHostName is called repeatedly it will throw an EMFILE error, plus it takes on average 4ms per call. The native call takes on average .001ms per call.

os.hostname() doesn't use exec, should be a little faster.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant